|
| 1 | +--- |
| 2 | +# THROWAWAY e2e test for dotCMS/ai-workflows v3.3.3 (PR #61 + pricing commit). |
| 3 | +# Delete this file once the test PR is closed — it is not part of core-workflow-test's |
| 4 | +# normal CI surface. Only runs on a PR whose title contains the marker below. |
| 5 | + |
| 6 | +name: E2E test — ai-workflows v3.3.3 |
| 7 | + |
| 8 | +on: |
| 9 | + pull_request: |
| 10 | + types: [opened, synchronize] |
| 11 | + |
| 12 | +jobs: |
| 13 | + # Positive case: Sonnet 5 now has an accepted Bedrock agreement, so this should produce |
| 14 | + # a real review comment (not the placeholder, not a failure comment). |
| 15 | + sonnet5-positive: |
| 16 | + if: contains(github.event.pull_request.title, '[e2e-v3.3.3]') |
| 17 | + permissions: |
| 18 | + id-token: write |
| 19 | + contents: write |
| 20 | + pull-requests: write |
| 21 | + issues: write |
| 22 | + uses: dotCMS/ai-workflows/.github/workflows/claude-orchestrator.yml@v3.3.3 |
| 23 | + with: |
| 24 | + trigger_mode: automatic |
| 25 | + enable_mention_detection: false |
| 26 | + prompt: Say "sonnet5-positive-ok" and nothing else. |
| 27 | + model_id: global.anthropic.claude-sonnet-5 |
| 28 | + bedrock_role_arn: ${{ vars.BEDROCK_ROLE_ARN }} |
| 29 | + |
| 30 | + # Negative case: bogus model id routes to the same anthropic-bedrock executor (regex match |
| 31 | + # is on the `anthropic.` prefix, not on the id being real) but fails at invocation time. |
| 32 | + # Before PR #61 this failed silently (is_error swallowed); v3.3.3 should post an explicit |
| 33 | + # failure comment instead of leaving the placeholder. |
| 34 | + bad-model-negative: |
| 35 | + if: contains(github.event.pull_request.title, '[e2e-v3.3.3]') |
| 36 | + permissions: |
| 37 | + id-token: write |
| 38 | + contents: write |
| 39 | + pull-requests: write |
| 40 | + issues: write |
| 41 | + uses: dotCMS/ai-workflows/.github/workflows/claude-orchestrator.yml@v3.3.3 |
| 42 | + with: |
| 43 | + trigger_mode: automatic |
| 44 | + enable_mention_detection: false |
| 45 | + prompt: Say "should-never-see-this" and nothing else. |
| 46 | + model_id: global.anthropic.claude-does-not-exist-999 |
| 47 | + bedrock_role_arn: ${{ vars.BEDROCK_ROLE_ARN }} |
0 commit comments