Skip to content

Commit 0f6b1aa

Browse files
authored
fix(rename): Cedar prefixed telemetry env vars (#1836)
1 parent b9a926a commit 0f6b1aa

28 files changed

Lines changed: 238 additions & 59 deletions

.github/actions/telemetry_check/check.mjs

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@ import path from 'path'
55

66
import { exec } from '@actions/exec'
77

8-
console.log(
9-
`Telemetry is being redirected to ${process.env.REDWOOD_REDIRECT_TELEMETRY}`,
10-
)
8+
const redirectUrl =
9+
process.env.CEDAR_REDIRECT_TELEMETRY || process.env.REDWOOD_REDIRECT_TELEMETRY
10+
11+
console.log(`Telemetry is being redirected to ${redirectUrl}`)
1112

1213
// Setup fake telemetry server
1314
const server = http.createServer((req, res) => {
@@ -27,8 +28,8 @@ const server = http.createServer((req, res) => {
2728
})
2829

2930
// Run the fake telemetry server at the redirected location
30-
const host = process.env.REDWOOD_REDIRECT_TELEMETRY.split(':')[1].slice(2)
31-
const port = parseInt(process.env.REDWOOD_REDIRECT_TELEMETRY.split(':')[2])
31+
const host = redirectUrl.split(':')[1].slice(2)
32+
const port = parseInt(redirectUrl.split(':')[2])
3233
server.listen(port, host, () => {
3334
console.log(`Telemetry listener is running on http://${host}:${port}`)
3435
})

.github/workflows/background-jobs-e2e.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313

1414
env:
1515
CEDAR_CI: 1
16-
REDWOOD_VERBOSE_TELEMETRY: 1
16+
CEDAR_VERBOSE_TELEMETRY: 1
1717

1818
steps:
1919
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
@@ -32,4 +32,4 @@ jobs:
3232
- name: Run E2E test script
3333
run: yarn e2e:background-jobs ${{ steps.set-up-test-project.outputs.test-project-path }}
3434
env:
35-
REDWOOD_VERBOSE_TELEMETRY: ''
35+
CEDAR_VERBOSE_TELEMETRY: ''

.github/workflows/cli-smoke-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313

1414
env:
1515
CEDAR_CI: 1
16-
REDWOOD_VERBOSE_TELEMETRY: 1
16+
CEDAR_VERBOSE_TELEMETRY: 1
1717

1818
steps:
1919
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6

.github/workflows/e2e-netlify.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ jobs:
88
runs-on: ubuntu-latest
99

1010
env:
11-
REDWOOD_CI: 1
12-
REDWOOD_VERBOSE_TELEMETRY: 1
11+
CEDAR_CI: 1
12+
CEDAR_VERBOSE_TELEMETRY: 1
1313
YARN_ENABLE_HARDENED_MODE: 0
1414
YARN_ENABLE_IMMUTABLE_INSTALLS: false
1515
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}

.github/workflows/fragments-smoke-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313

1414
env:
1515
CEDAR_CI: 1
16-
REDWOOD_VERBOSE_TELEMETRY: 1
16+
CEDAR_VERBOSE_TELEMETRY: 1
1717

1818
steps:
1919
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6

.github/workflows/live-smoke-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313

1414
env:
1515
CEDAR_CI: 1
16-
REDWOOD_VERBOSE_TELEMETRY: 1
16+
CEDAR_VERBOSE_TELEMETRY: 1
1717

1818
steps:
1919
- name: Checkout the framework code

.github/workflows/rsc-smoke-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313

1414
env:
1515
CEDAR_CI: 1
16-
REDWOOD_VERBOSE_TELEMETRY: 1
16+
CEDAR_VERBOSE_TELEMETRY: 1
1717

1818
steps:
1919
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6

.github/workflows/smoke-tests-react-18-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313

1414
env:
1515
CEDAR_CI: 1
16-
REDWOOD_VERBOSE_TELEMETRY: 1
16+
CEDAR_VERBOSE_TELEMETRY: 1
1717

1818
steps:
1919
- name: Checkout the framework code

.github/workflows/smoke-tests-test-esm.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313

1414
env:
1515
CEDAR_CI: 1
16-
REDWOOD_VERBOSE_TELEMETRY: 1
16+
CEDAR_VERBOSE_TELEMETRY: 1
1717

1818
steps:
1919
- name: Checkout the framework code

.github/workflows/smoke-tests-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313

1414
env:
1515
CEDAR_CI: 1
16-
REDWOOD_VERBOSE_TELEMETRY: 1
16+
CEDAR_VERBOSE_TELEMETRY: 1
1717

1818
steps:
1919
- name: Checkout the framework code

0 commit comments

Comments
 (0)