-
Notifications
You must be signed in to change notification settings - Fork 136
126 lines (105 loc) · 4.95 KB
/
Copy pathci.yml
File metadata and controls
126 lines (105 loc) · 4.95 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
name: Build and Test
on:
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: ['>=22.7.5 <23', '24.x']
steps:
- uses: actions/checkout@v7
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v7
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Set up Docker
uses: docker/setup-buildx-action@v4
- name: Install dependencies
run: npm ci
- name: TypeScript compilation
run: npx tsc
- name: Lint
run: npm run lint
- name: Build
run: npm run build
- name: Build Docker image
run: npm run build:docker
- name: Build NPM package
run: npm pack
- name: Tests
run: npm run coverage
- name: E2E Tests
if: github.event.pull_request.head.repo.full_name == github.repository && github.actor != 'dependabot[bot]'
uses: ./.github/actions/run-e2e-tests
env:
SERVER: ${{ secrets.E2E_TEST_SERVER }}
SITE_NAME: ${{ secrets.E2E_TEST_SITE_NAME }}
AUTH: ${{ secrets.E2E_TEST_AUTH }}
JWT_SUB_CLAIM: ${{ secrets.E2E_TEST_JWT_SUB_CLAIM }}
CONNECTED_APP_CLIENT_ID: ${{ secrets.E2E_TEST_CONNECTED_APP_CLIENT_ID }}
CONNECTED_APP_SECRET_ID: ${{ secrets.E2E_TEST_CONNECTED_APP_SECRET_ID }}
CONNECTED_APP_SECRET_VALUE: ${{ secrets.E2E_TEST_CONNECTED_APP_SECRET_VALUE }}
- name: OAuth Tests (Embedded authz server)
if: github.event.pull_request.head.repo.full_name == github.repository && github.actor != 'dependabot[bot]'
uses: ./.github/actions/run-oauth-embedded-authz-tests
env:
SERVER: ${{ secrets.E2E_TEST_SERVER }}
SITE_NAME: ${{ secrets.E2E_TEST_SITE_NAME }}
OAUTH_JWE_PRIVATE_KEY: ${{ secrets.OAUTH_TEST_OAUTH_JWE_PRIVATE_KEY }}
OAUTH_JWE_PRIVATE_KEY_PASSPHRASE: ${{ secrets.OAUTH_TEST_OAUTH_JWE_PRIVATE_KEY_PASSPHRASE }}
# Skipped on Node 24: Playwright browser launch stalls indefinitely under that runtime.
# I gave Claude the CI logs and it said:
# Root cause: Node.js 24 ships with an updated undici-backed fetch and changed AbortSignal propagation behaviour.
# Playwright's browser installer pipes the download stream directly into an extraction process (unzip/tar). On Node
# 24, the internal AbortController that Playwright uses to manage the download lifetime fires during the hand-off
# between the completed download stream and the extraction subprocess — canceling the operation even though the bytes
# arrived.
# The result is an error that looks like a network failure but is actually a signal-propagation race in the install
# script between Node 24's new stream/abort semantics and Playwright's child_process usage for extraction.
# Why it appeared to "stall" rather than fail fast: GitHub Actions has a default job timeout of 6 hours. If the cancel
# error was swallowed or the extraction process hung instead of exiting, the job would sit silently until that
# timeout — which matches the "stalls indefinitely" symptom you saw.
# The fix you already applied is correct: pinning to >=22.7.5 <23 sidesteps the Node 24 regression entirely. Once
# Playwright ships a version that handles Node 24's abort semantics correctly you can re-enable it, but there's
# nothing to change on your side right now.
- name: OAuth Tests (Tableau authz server)
if: matrix.node-version == '>=22.7.5 <23' && github.event.pull_request.head.repo.full_name == github.repository && github.actor != 'dependabot[bot]'
uses: ./.github/actions/run-oauth-tableau-authz-tests
env:
SERVER: ${{ secrets.E2E_TEST_SERVER }}
TEST_USER: ${{ secrets.E2E_TEST_USER }}
TEST_PASSWORD: ${{ secrets.E2E_TEST_PASSWORD }}
TEST_SITE_NAME: ${{ secrets.E2E_TEST_SITE_NAME }}
- name: Build Claude MCP Bundle
run: |
npm run build:manifest
npm ci --omit=dev
npx -y @anthropic-ai/mcpb pack . tableau-mcp.mcpb
- name: Report code coverage
if: always() && matrix.node-version == '>=22.7.5 <23'
uses: irongut/CodeCoverageSummary@v1.3.0
with:
filename: coverage/**/cobertura-coverage.xml
badge: true
fail_below_min: false
format: markdown
hide_branch_rate: false
hide_complexity: true
indicators: true
output: both
thresholds: '60 80'
- name: Upload artifacts
if: always()
uses: actions/upload-artifact@v7
with:
name: artifacts-node${{ matrix.node-version == '>=22.7.5 <23' && '22.x' || matrix.node-version }}
if-no-files-found: error
path: |
build/
junit/
playwright-report/
tableau-mcp.mcpb