Skip to content

Include journey test in CI build to ensure clients can fetch and build exercises #83

Closed

Description

@jtigger

As a track maintainer,
I want the CI build to also stand-up a local instance of exercism and fetch exercises through the client
So that I'm confident that end-to-end, my changes don't break the exercism experience.


Notes:

  • look at README.md for full setup instructions. This should be fun as it requires a Ruby install as part of the build (possible on travis?)

Activity

  1. kytrinyx commented on Dec 31, 2015

    @kytrinyx
    Member

    +1000

    But... it requires a ruby install? How so?

    It seems like it should be enough to download and unpack the linux version of the exercism binary, and then loop through each exercise in the config.json and say exercism fetch java SLUG, no?

    The default is to use http://x.exercism.io, and you can fetch individual exercises without having an API key.

  2. jtigger commented on Dec 31, 2015

    @jtigger
    ContributorAuthor

    Well, but that setup would be using the deployed set of problems. This would be an attempt to catch defects introduced in the latest commit to the track.

    That said, today the client doesn't filter much (just paths with the work "example" in them). Is that something that's likely to change in the near/mid future?

    Perhaps it would be better to simply build each exercise individually (disconnected from their parent); that would have caught this issue.

  3. jtigger commented on Dec 31, 2015

    @jtigger
    ContributorAuthor

    ... looking at the next layer of this onion, "success" would be a little hard to detect: some exercises, when fetched correctly do not compile (because we stop providing a shell of a solution, altogether a few steps down the progression).

    I'll be chewing on this.

  4. kytrinyx commented on Dec 31, 2015

    @kytrinyx
    Member

    How about...

    • copy the individual exercise
    • rename/move example solution
    • build

    ?

  5. self-assigned this
    on Apr 2, 2016
  6. jtigger commented on Apr 2, 2016

    @jtigger
    ContributorAuthor

    Picking this up as a morning exercise with a couple of folks from work (started with @bronhuston).

    The basic plan is to replay the sandbox workstation setup in Travis, fetch, "solve" (copying the example), and test all problems. Not only does this check the validity of the test+example combination, but the plumbing too. When in place, committers have the luxury of focusing on the quality of the submission and not worry whether merging in will break production.

  7. jtigger commented on Jun 26, 2016

    @jtigger
    ContributorAuthor

    As a matter of update, this group has nearly finished this work. It's functional on a fork, but needs just a few nips-and-tucks to make it merge-worthy.

  8. jtigger commented on Jul 20, 2016

    @jtigger
    ContributorAuthor

    At this point, we've met the spirit of this story.

  9. jtigger commented on Jul 20, 2016

    @jtigger
    ContributorAuthor

    Ooops! Forgot to update the README.md accordingly... almost done. ;)

  10. jtigger commented on Sep 17, 2016

    @jtigger
    ContributorAuthor

    Okay; docs in place. Done.

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions