Skip to content

Create exercise versioning policy based on Haskell track #628

Closed

Description

@tejasbubane

Exercism tracking issue: https://github.com/exercism/exercism/issues/4786

Note: This is not the same as exercism/exercism#4266 which removed tracking versions from the user code.

Proposed implementation for JavaScript

In package.json change the version number to match the x.y.z of test data versioning, and add .q which we always increment if a change is made without a sync (new test data): x.y.z.q.

Activity

  1. tejasbubane commented on Mar 5, 2019

    @tejasbubane
    MemberAuthor

    @SleeplessByte For now I suggest not adding extra .q and matching with test data versions. This is ofcourse assuming that our tests will match test data exactly and we won't be needing any extra tests.

  2. tejasbubane commented on Mar 5, 2019

    @tejasbubane
    MemberAuthor

    Sorry for not being clear with the issue description. Better late than never if anyone else ends up here.

    The issue here is not all exercises in this track are in sync with problem specifications. Some (if not most) lag behind and miss some tests or have old version of tests. We need to take this case by case basis and do the following:

    • If all tests match, just update version number and we should be good.
    • If tests don't match, make the changes required to match them and then update the version number.

    I would expect separate PRs with a few exercises - not more than 3-4 in one PR so that it is easy to review.

  3. SleeplessByte commented on Mar 5, 2019

    @SleeplessByte
    Member

    @tejasbubane yep! I'll make a checklist too.

  4. smb26 commented on Mar 14, 2019

    @smb26
    Contributor

    Can I have it please? 😄

  5. SleeplessByte commented on Mar 14, 2019

    @SleeplessByte
    Member

    @smb26 ❤️ of course. Could you start by opening another issue with at least the ones you're doing but preferably all the exercises as a checkbox (like I did with #600) and name it:

    #Checklist: add exercise versioning

    Note the steps are listed here: #628 (comment)

  6. SleeplessByte commented on Apr 10, 2019

    @SleeplessByte
    Member

    @tejasbubane any update on the makefile change to remove the version / replace it with 0.0.0 when doing the integrity check (when running make test-travis as well as merging the current version into the copy when running make?

  7. sshine commented on Jun 26, 2019

    @sshine

    Haskell's versioning policy was decided in exercism/haskell#522, implemented in exercism/haskell#523 and documented in exercism/haskell#716. In particular, the main benefit of having a fourth serial version number is that you can track changes to any part of the exercise files given to a user.

    Having only the canonical version means you can keep the exercise up-to-date with canonical tests.

  8. SleeplessByte commented on Jun 26, 2019

    @SleeplessByte
    Member

    Thank you for these links @sshine !

  9. tejasbubane commented on Jul 1, 2019

    @tejasbubane
    MemberAuthor

    I was planning to add versions to package.json files but I guess there are more options being discussed in exercism/discussions#239. We will wait for a decision to be made over there.

  10. SleeplessByte commented on Sep 23, 2019

    @SleeplessByte
    Member

    I've started adding versions, because I can use the package.json in the test runner.
    See https://ooew0.csb.app/javascript for status.

    Let's revisit this once that discussion is resolved, but use package.json for now. It will be trivial to move the version to whereever.

  11. SleeplessByte commented on Oct 17, 2020

    @SleeplessByte
    Member

    We've dropped versions from canonical problem specs, so they don't make sense anymore in the context of this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    chore 🔧Meta related task such as build, test, linting, maintainers.json etc.pinned 📌

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions