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

Re-generate RawScripts.purs during CI tests #53

Open
jstolarek opened this issue Jul 4, 2024 · 0 comments
Open

Re-generate RawScripts.purs during CI tests #53

jstolarek opened this issue Jul 4, 2024 · 0 comments
Labels
Ops/CI/CD/Nix Infrastructure and build system

Comments

@jstolarek
Copy link
Contributor

jstolarek commented Jul 4, 2024

We currently version offchain/src/TrustlessSidechain/RawScripts.purs and offchain/test/Test/PoCRawScripts.purs files inside the repository, even though these files are generated automatically by calling make update-scripts from the offchain directory. There are good reasons to have these files versioned (faster development, less dependencies for anyone wanting to build the off-chain), we should have the CI test that these files build correctly and are up to date. Hence the proposal that the CI:

  1. Builds all of on-chain code
  2. Removes both raw-scripts files.
  3. calls make update-scripts in offchain
  4. checks that generated files are identical to what is stored in the repository (in other words, the git tree should be clean)

If any of the above fails, the CI should fail.


IOG Jira: https://input-output.atlassian.net/browse/ETCM-7837

@tgunnoe tgunnoe transferred this issue from another repository Jul 25, 2024
@jstolarek jstolarek added the Ops/CI/CD/Nix Infrastructure and build system label Jul 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Ops/CI/CD/Nix Infrastructure and build system
Projects
None yet
Development

No branches or pull requests

1 participant