-
Notifications
You must be signed in to change notification settings - Fork 46
feat: make jar release condition to unit and replay passing by default' #2469
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
Open
amkCha
wants to merge
4
commits into
arith-dev
Choose a base branch
from
feat/unit-replays-condition-to-jar-release
base: arith-dev
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+85
−105
Open
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,55 @@ | ||
| name: "Reusable fast replay tests workflow" | ||
| permissions: | ||
| contents: read | ||
|
|
||
| on: | ||
| workflow_call: | ||
| inputs: | ||
| tests-with-ssh: | ||
| required: true | ||
| type: boolean | ||
|
|
||
| jobs: | ||
| # ================================================================== | ||
| # Fast replay Tests | ||
| # ================================================================== | ||
| fast-replay-tests: | ||
| runs-on: gha-runner-scale-set-ubuntu-22.04-amd64-xxl | ||
| steps: | ||
| - name: Checkout repository | ||
| uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | ||
| with: | ||
| submodules: false | ||
|
|
||
| - name: Setup Environment | ||
| uses: ./.github/actions/setup-environment | ||
| with: | ||
| enable-ssh: ${{ inputs.tests-with-ssh }} | ||
|
|
||
| - name: Run replay tests | ||
| run: GOMEMLIMIT=26GiB ./gradlew :arithmetization:fastReplayTests | ||
| env: | ||
| JAVA_OPTS: -Dorg.gradle.daemon=false | ||
| JUNIT_TESTS_PARALLELISM: 4 | ||
| GOCORSET_FLAGS: -b1024 -v --ansi-escapes=false --report --air | ||
|
|
||
| - name: Upload test report | ||
| if: ${{ always() }} | ||
| uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 | ||
| with: | ||
| name: replay-tests-report | ||
| path: arithmetization/build/reports/tests/**/* | ||
|
|
||
| - name: Upload jacoco fast replay tests coverage report | ||
| if: always() | ||
| uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 | ||
| with: | ||
| name: jacoco-fast-replay-tests-coverage-report | ||
| path: arithmetization/build/reports/jacoco/jacocoFastReplayTestsReport/**/* | ||
|
|
||
| - name: Upload jacoco fast replay tests exec file | ||
| if: always() | ||
| uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 | ||
| with: | ||
| name: jacoco-fast-replay-tests-exec-file | ||
| path: arithmetization/build/jacoco/fastReplayTests.exec | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Check warning
Code scanning / CodeQL
Workflow does not contain permissions Medium
Copilot Autofix
AI about 15 hours ago
To address the problem, we should explicitly add a
permissionsblock to the workflow. Since all jobs in the workflow only check out the repository, run tests, and upload artifacts, the minimum required is nearly alwayscontents: read. This will prevent the workflow from inheriting more permissive defaults set at the repository or organization level. Thepermissionsblock should be added at the top level of the workflow file (just after thenameand beforeon) to apply to all jobs by default. No changes to the workflow steps or additional configuration are required.