Skip to content
Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
593 changes: 348 additions & 245 deletions .github/workflows/integration-mobile-test-qvac-lib-infer-parakeet.yml

Large diffs are not rendered by default.

57 changes: 55 additions & 2 deletions .github/workflows/on-pr-qvac-lib-infer-parakeet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -202,11 +202,64 @@
repository: ${{ needs.context.outputs.repository }}
ref: ${{ needs.context.outputs.ref }}

combine-rtf-report:
needs: [context, run-integration-tests, run-mobile-integration-tests]
if: always() && (needs.context.outputs.run_verify == 'true' || github.event_name == 'workflow_dispatch')
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # 6.0.2
with:
repository: ${{ needs.context.outputs.repository }}
ref: ${{ needs.context.outputs.ref }}
token: ${{ secrets.PAT_TOKEN }}

- name: Download desktop RTF artifacts
continue-on-error: true
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # 8.0.1
with:
pattern: rtf-results-*
path: benchmark-artifacts/desktop
merge-multiple: true

- name: Download mobile RTF artifacts
continue-on-error: true
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # 8.0.1
with:
pattern: mobile-rtf-results-parakeet-*
path: benchmark-artifacts/mobile
merge-multiple: true

- name: Generate unified RTF report
run: |
node scripts/perf-report/aggregate-parakeet-rtf.js \
--dir benchmark-artifacts \
--manual-dir packages/qvac-lib-infer-parakeet/benchmarks/manual-results \
--output benchmark-artifacts/parakeet-unified-rtf-report.md \
--output-json benchmark-artifacts/parakeet-unified-rtf-report.json \
--output-html benchmark-artifacts/parakeet-unified-rtf-report.html

- name: Add unified RTF summary

Check failure

Code scanning / CodeQL

Checkout of untrusted code in a privileged context Critical

Potential execution of untrusted code on a privileged workflow (
pull_request_target
)
Comment thread
github-advanced-security[bot] marked this conversation as resolved.
Fixed
run: |
node -e "process.stdout.write(require('fs').readFileSync('benchmark-artifacts/parakeet-unified-rtf-report.md', 'utf8'))" >> "$GITHUB_STEP_SUMMARY"

- name: Upload unified RTF report
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # 7.0.0
with:
name: parakeet-unified-rtf-report
path: |
benchmark-artifacts/parakeet-unified-rtf-report.md
benchmark-artifacts/parakeet-unified-rtf-report.json
benchmark-artifacts/parakeet-unified-rtf-report.html
retention-days: 30

merge-guard:
needs: [authorize, sanity-checks, cpp-lint, cpp-tests-coverage, prebuild, run-integration-tests, run-mobile-integration-tests]
needs: [authorize, sanity-checks, cpp-lint, cpp-tests-coverage, prebuild, run-integration-tests, run-mobile-integration-tests, combine-rtf-report]
if: always()
uses: ./.github/workflows/public-pr.yml
with:
sanity-checks-status: ${{ needs.sanity-checks.result == 'success' && (needs.cpp-lint.result == 'success' || needs.cpp-lint.result == 'skipped') && (needs.cpp-tests-coverage.result == 'success' || needs.cpp-tests-coverage.result == 'skipped') }}
build-status: ${{ needs.prebuild.result == 'success' || needs.prebuild.result == 'skipped' }}
integration-tests-status: ${{ (needs.run-integration-tests.result == 'success' || needs.run-integration-tests.result == 'skipped') && (needs.run-mobile-integration-tests.result == 'success' || needs.run-mobile-integration-tests.result == 'skipped') }}
integration-tests-status: ${{ (needs.run-integration-tests.result == 'success' || needs.run-integration-tests.result == 'skipped') && (needs.run-mobile-integration-tests.result == 'success' || needs.run-mobile-integration-tests.result == 'skipped') && (needs.combine-rtf-report.result == 'success' || needs.combine-rtf-report.result == 'skipped') }}
Loading
Loading