Skip to content
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

ci: run ci on pull_request and add basic tests #8

Merged
merged 1 commit into from
Aug 23, 2023

Conversation

sorawee
Copy link

@sorawee sorawee commented Aug 22, 2023

  • Prior this commit, every job depends on publish-docker, which is only
    run on push. Therefore, all jobs are skipped. This commit fixes the
    issue by removing the dependency.

    • publish-docker is now also run as the last step, only when all tests passed.

    • All subsequent jobs are now run on veridise/picus:git-latest,
      so that we do not need to push first.

  • The tests are slightly more sophisticated. Previously, it only ensures
    that there's no error. Now, we also check against expected
    output (underconstrained or not).

  • Switch to use Racket and Rosette that are already installed in the
    image. It turns out that we need to set the environment variable
    PLTADDONDIR for this to work, because $HOME is overriden in containers
    in GHA (HOME is overridden for containers actions/runner#863).

  • Remove a job that only compiles circomlib.
    There's no point to do that.

- Prior this commit, every job depends on `publish-docker`, which is only
  run on push. Therefore, all jobs are skipped. This commit fixes the
  issue by removing the dependency.

  - `publish-docker` is now also run as the last step, only when all tests passed.

  - All subsequent jobs are now run on veridise/picus:git-latest,
    so that we do not need to push first.

- The tests are slightly more sophisticated. Previously, it only ensures
  that there's no error. Now, we also check against expected
  output (underconstrained or not).

- Switch to use Racket and Rosette that are already installed in the
  image. It turns out that we need to set the environment variable
  `PLTADDONDIR` for this to work, because $HOME is overriden in containers
  in GHA (actions/runner#863).

- Remove a job that only compiles circomlib.
  There's no point to do that.
@sorawee sorawee changed the title [DO NOT MERGE] test GHA ci: run ci on pull_request and add basic tests Aug 23, 2023
Copy link
Collaborator

@shankarapailoor shankarapailoor left a comment

Choose a reason for hiding this comment

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

LGTM

@shankarapailoor shankarapailoor merged commit 5d70478 into Veridise:main Aug 23, 2023
3 checks passed
@sorawee sorawee deleted the gha-ci branch August 23, 2023 18:26
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