Skip to content

Port to spago from bower/pulp #8

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
May 28, 2021
Merged

Conversation

emiel
Copy link
Contributor

@emiel emiel commented May 25, 2021

After lots of fooling around I've finally got this working. Let me know if I anything needs further clarification.

  • Upgrade to PureScript 0.13.8 (from 0.12.0)
  • Introduce spago and get it working in a sandboxed environment
  • Remove bower/pulp
  • Documentation
  • Removed colorized output (will reintroduce later)
  • Refactor Dockerfile and bin/* scripts

The PureScript exercises have been ported to Spago as well (exercism/purescript#185) and are awaiting this PR to be approved and merged.

I'm hoping some improvements can be made to spago so that we can simplify some of the steps needed here. There are already some outstanding tickets that would aid us here and I'll follow up with those soon.

emiel added 2 commits May 25, 2021 22:39
* Upgrade to PureScript 0.13.8
* Introduce spago and get it working in a sandboxed environment
* Remove bower/pulp
* Documentation
* Removed colorized output (will reintroduce later)
* Refactor Dockerfile and bin/* scripts
@emiel emiel requested a review from a team as a code owner May 25, 2021 20:55
Copy link
Member

@ErikSchierboom ErikSchierboom left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excellent work! Colorization can indeed be added later.

Once this is merged, the status.test_runner property in the track's config.json file should be set to true (see https://github.com/exercism/purescript/blob/main/config.json#L7) and to add a test_runner.average_run_time property. See https://github.com/exercism/csharp/blob/main/config.json#L19.

@@ -3,7 +3,7 @@
The Docker image for automatically run tests on PureScript solutions submitted
to [exercism][web-exercism].

This repository contains the Java test runner, which implements the
This repository contains the PureScript test runner, which implements the
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Whoops!

@@ -15,3 +15,22 @@ To run a solution's test in the Docker container, do the following:

[test-runner-interface]: https://github.com/exercism/automated-tests/blob/master/docs/interface.md
[web-exercism]: https://exercism.io/


## Design Goal and Implementation
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great to have this explanation!

Comment on lines +43 to +45
--mount type=bind,source="${input_dir}",destination=/solution \
--mount type=bind,source="${output_dir}",destination=/output \
--mount type=tmpfs,destination=/tmp \
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like the added explicitness!

Prevent sending unrelated files to the docker daemon as part of the
build context.
@ErikSchierboom
Copy link
Member

@emiel Do you have merge permissions?

@emiel
Copy link
Contributor Author

emiel commented May 27, 2021

@ErikSchierboom I do not. :)

@ErikSchierboom ErikSchierboom merged commit 6f33276 into exercism:main May 28, 2021
@ErikSchierboom
Copy link
Member

Merged :) Thanks!

@emiel emiel deleted the emiel-spago-pr branch October 15, 2022 09:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants