-
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
base: arith-dev
Are you sure you want to change the base?
Conversation
9107e69 to
eb7d3d9
Compare
| 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 |
Check warning
Code scanning / CodeQL
Workflow does not contain permissions Medium
Show autofix suggestion
Hide autofix suggestion
Copilot Autofix
AI about 11 hours ago
To address the problem, we should explicitly add a permissions block to the workflow. Since all jobs in the workflow only check out the repository, run tests, and upload artifacts, the minimum required is nearly always contents: read. This will prevent the workflow from inheriting more permissive defaults set at the repository or organization level. The permissions block should be added at the top level of the workflow file (just after the name and before on) to apply to all jobs by default. No changes to the workflow steps or additional configuration are required.
-
Copy modified lines R2-R3
| @@ -1,4 +1,6 @@ | ||
| name: "Reusable fast replay tests workflow" | ||
| permissions: | ||
| contents: read | ||
|
|
||
| on: | ||
| workflow_call: |
eb7d3d9 to
44987a2
Compare
Note
Refactors fast replay tests into a reusable workflow and makes release publishing wait for unit and fast replay tests by default, with an option to publish immediately.
/.github/workflows/reusable-fast-replay-tests.ymlencapsulating checkout, environment setup, running:arithmetization:fastReplayTests, and uploading reports.gradle-tests.ymlto use the reusable fast replay workflow; propagatetests-with-sshinput.manual-release.yml, switch fast replay tests to the reusable workflow and keep onlyunit-tests-prague.wait-for-tests-bef-publishinput (defaulttrue).publish-conditional-to-units-and-replay-testsjob gated on passing unit (Prague) and fast replay tests; publish via./gradlew publishwith Cloudsmith creds.publish-as-soon-as-readyjob to publish immediately when the input isfalse.Written by Cursor Bugbot for commit ba3d69d. This will update automatically on new commits. Configure here.