Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
42 changes: 0 additions & 42 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -371,20 +371,6 @@ jobs:
cache: true
run-install: true

- name: Download relay client tracing config
uses: actions/download-artifact@v8
with:
name: relay-client-tracing-config
path: ${{ runner.temp }}/relay-client-tracing

- name: Load relay client tracing config
shell: bash
run: |
config_path="$RUNNER_TEMP/relay-client-tracing/relay-client-tracing.env"
tracing_token="$(sed -n 's/^T3CODE_RELAY_CLIENT_OTLP_TRACES_TOKEN=//p' "$config_path")"
echo "::add-mask::$tracing_token"
cat "$config_path" >> "$GITHUB_ENV"

- name: Align package versions to release version
run: node scripts/update-release-package-versions.ts "${{ needs.preflight.outputs.version }}"

Expand Down Expand Up @@ -668,20 +654,6 @@ jobs:
- --filter=@t3tools/web...
- --filter=@t3tools/scripts...

- name: Download relay client tracing config
uses: actions/download-artifact@v8
with:
name: relay-client-tracing-config
path: ${{ runner.temp }}/relay-client-tracing

- name: Load relay client tracing config
shell: bash
run: |
config_path="$RUNNER_TEMP/relay-client-tracing/relay-client-tracing.env"
tracing_token="$(sed -n 's/^T3CODE_RELAY_CLIENT_OTLP_TRACES_TOKEN=//p' "$config_path")"
echo "::add-mask::$tracing_token"
cat "$config_path" >> "$GITHUB_ENV"

- name: Align package versions to release version
run: node scripts/update-release-package-versions.ts "${{ needs.preflight.outputs.version }}"

Expand Down Expand Up @@ -844,20 +816,6 @@ jobs:
- --filter=@t3tools/scripts...
- --filter=@t3tools/web...

- name: Download relay client tracing config
uses: actions/download-artifact@v8
with:
name: relay-client-tracing-config
path: ${{ runner.temp }}/relay-client-tracing

- name: Load relay client tracing config
shell: bash
run: |
config_path="$RUNNER_TEMP/relay-client-tracing/relay-client-tracing.env"
tracing_token="$(sed -n 's/^T3CODE_RELAY_CLIENT_OTLP_TRACES_TOKEN=//p' "$config_path")"
echo "::add-mask::$tracing_token"
cat "$config_path" >> "$GITHUB_ENV"

- name: Align package versions to release version
run: node scripts/update-release-package-versions.ts "${{ needs.preflight.outputs.version }}"

Expand Down
1 change: 1 addition & 0 deletions FORK.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ This repository is a fork of `pingdotgg/t3code`. Keep this file focused on fork
### Release And CI

- Fork workflows disable scheduled releases, relay jobs, hosted deploys, and fork-unsafe publish paths.
- Release build jobs skip relay client tracing config because the relay config job is disabled.
- Release builds publish updater metadata against the fork repository.
- Fork release versions are derived in the release workflow so package manifests stay close to upstream.
- macOS release signing is separate from Apple notarization.
Expand Down
8 changes: 6 additions & 2 deletions infra/relay/scripts/deploy.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ describe("serializeRelayClientTracingEnvironment", () => {
});

describe("release workflow tracing config propagation", () => {
it.effect("uses an artifact instead of a masked cross-job token output", () =>
it.effect("keeps relay tracing config isolated to the disabled relay job", () =>
Effect.gen(function* () {
const fileSystem = yield* FileSystem.FileSystem;
const path = yield* Path.Path;
Expand All @@ -167,9 +167,13 @@ describe("release workflow tracing config propagation", () => {

expect(workflow).not.toContain("client_tracing_token:");
expect(workflow).not.toContain("needs.relay_public_config.outputs.client_tracing_token");
expect(workflow).toContain(
"if: ${{ false }} # Disabled for the fork: no production relay config.",
);
expect(workflow).toContain('--github-env-file "$RUNNER_TEMP/relay-client-tracing.env"');
expect(workflow).toContain("name: relay-client-tracing-config");
expect(workflow).toContain('cat "$config_path" >> "$GITHUB_ENV"');
expect(workflow).not.toContain('cat "$config_path" >> "$GITHUB_ENV"');
expect(workflow).not.toContain("Download relay client tracing config");
}).pipe(Effect.provide(NodeServices.layer)),
);
});
Expand Down
Loading