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

Update build.gradle to support nightly reference tests #8732

Merged
merged 2 commits into from
Oct 16, 2024

Conversation

jtraglia
Copy link
Contributor

@jtraglia jtraglia commented Oct 16, 2024

PR Description

Recently, the consensus-specs repo started generating nightly reference tests:

To test this, do the following:

  • Unfortunately, we need a token to download artifacts programmatically.
    • Create a GitHub access token at https://github.com/settings/tokens with the following perms:
    • repo, workflow, admin:repo_hook (not sure these are actually necessary, but it's what I did)
    • I would recommend using a burner GitHub account for this just in-case it gets burned.
  • Export this as an environment variable under GITHUB_TOKEN.
    • I just added a export GITHUB_TOKEN="ghp_..." line to my ~/.zshrc file.
  • Download/expand/run the nightly reference tests like so:
    • NIGHTLY=true ./gradlew expandRefTests
    • ./gradlew referenceTest

Output from expandRefTests will look like:

image

Documentation

  • I thought about documentation and added the doc-change-required label to this PR if updates are required.

Changelog

  • I thought about adding a changelog entry, and added one if I deemed necessary.

@lucassaldanha lucassaldanha self-requested a review October 16, 2024 08:56
@lucassaldanha lucassaldanha enabled auto-merge (squash) October 16, 2024 22:16
@lucassaldanha lucassaldanha merged commit da119c6 into Consensys:master Oct 16, 2024
17 checks passed
@jtraglia jtraglia deleted the nightly-ref-tests-gradle branch October 17, 2024 00: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