Repository navigation
feat(seer): Rename agentic_triage_v2 to scheduled_investigation #59200
Workflow file for this run
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
| name: '[NOT REQUIRED] type coverage diff' | |
| on: | |
| pull_request: | |
| # Cancel in progress workflows on pull_requests. | |
| # https://docs.github.com/en/actions/using-jobs/using-concurrency#example-using-a-fallback-value | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | |
| cancel-in-progress: true | |
| env: | |
| NODE_OPTIONS: '--max-old-space-size=5120' | |
| permissions: | |
| contents: read | |
| jobs: | |
| files-changed: | |
| name: detect what files changed | |
| runs-on: ubuntu-26.04-arm | |
| timeout-minutes: 3 | |
| permissions: | |
| contents: read | |
| pull-requests: read | |
| outputs: | |
| frontend_all: ${{ steps.changes.outputs.frontend_all }} | |
| steps: | |
| - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | |
| with: | |
| persist-credentials: false | |
| - name: Check for frontend file changes | |
| uses: dorny/paths-filter@7b450fff21473bca461d4b92ce414b9d0420d706 # v4.0.2 | |
| id: changes | |
| with: | |
| token: ${{ github.token }} | |
| filters: .github/file-filters.yml | |
| type-coverage-diff: | |
| if: needs.files-changed.outputs.frontend_all == 'true' | |
| needs: files-changed | |
| name: type coverage diff | |
| runs-on: ubuntu-26.04-arm | |
| timeout-minutes: 30 | |
| permissions: | |
| contents: read | |
| # Posts the coverage report as a PR comment. | |
| pull-requests: write | |
| steps: | |
| - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | |
| with: | |
| # Needs enough depth for the script to check out HEAD^1 | |
| # (the base branch tip) and run type-coverage there. | |
| fetch-depth: 0 | |
| persist-credentials: false | |
| - uses: $/.github/actions/setup-node-pnpm | |
| - name: Get base branch commit | |
| id: merge_base | |
| # GHA pull_request checks out a merge commit (refs/pull/N/merge): | |
| # HEAD^1 = base branch tip (e.g. master) | |
| # HEAD^2 = PR branch tip | |
| # HEAD^1 gives us the base branch tip, NOT one commit back on the PR. | |
| # @see https://docs.github.com/en/actions/reference/workflows-and-actions/events-that-trigger-workflows#how-the-merge-branch-affects-your-workflow | |
| run: .github/workflows/scripts/get-base-commit.sh | |
| - name: Run type-coverage-diff | |
| if: steps.merge_base.outputs.skip != 'true' | |
| id: coverage | |
| continue-on-error: true | |
| env: | |
| BASE_COMMIT: ${{ steps.merge_base.outputs.commit }} | |
| run: | | |
| pnpm run type-coverage-diff \ | |
| --commit "$BASE_COMMIT" \ | |
| --output /tmp/type-coverage-report.json \ | |
| --verbose | |
| - name: Format comment | |
| if: steps.merge_base.outputs.skip != 'true' | |
| id: comment | |
| env: | |
| REPORT_PATH: /tmp/type-coverage-report.json | |
| COVERAGE_OUTCOME: ${{ steps.coverage.outcome }} | |
| run: node .github/workflows/scripts/format-type-coverage-comment.ts | |
| - name: Find existing comment | |
| if: steps.merge_base.outputs.skip != 'true' | |
| uses: peter-evans/find-comment@a54c31d7fa095754bfef525c0c8e5e5674c4b4b1 # v2.4.0 | |
| id: fc | |
| with: | |
| issue-number: ${{ github.event.pull_request.number }} | |
| comment-author: 'github-actions[bot]' | |
| body-includes: '<!-- TYPE_COVERAGE_DIFF -->' | |
| - name: Create or update comment | |
| if: steps.merge_base.outputs.skip != 'true' && steps.comment.outputs.body | |
| uses: peter-evans/create-or-update-comment@b95e16d2859ad843a14218d1028da5b2c4cbc4b4 | |
| with: | |
| comment-id: ${{ steps.fc.outputs.comment-id }} | |
| issue-number: ${{ github.event.pull_request.number }} | |
| body: ${{ steps.comment.outputs.body }} | |
| edit-mode: replace | |
| - name: Update existing comment when clean | |
| if: > | |
| steps.merge_base.outputs.skip != 'true' && | |
| steps.comment.outputs.body == '' && | |
| steps.fc.outputs.comment-id != '' && | |
| steps.fc.outputs.comment-id != '0' | |
| uses: peter-evans/create-or-update-comment@b95e16d2859ad843a14218d1028da5b2c4cbc4b4 | |
| with: | |
| comment-id: ${{ steps.fc.outputs.comment-id }} | |
| issue-number: ${{ github.event.pull_request.number }} | |
| body: | | |
| <!-- TYPE_COVERAGE_DIFF --> | |
| ## 📊 Type Coverage Diff | |
| ✅ no issues found | |
| edit-mode: replace |