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
2 changes: 2 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -401,6 +401,7 @@ jobs:
OPENAI_API_KEY: '${{ secrets.OPENAI_API_KEY }}'
OPENAI_BASE_URL: '${{ secrets.OPENAI_BASE_URL }}'
OPENAI_MODEL: '${{ secrets.OPENAI_MODEL }}'
RUNNER_ENVIRONMENT: '${{ runner.environment }}'

steps:
# Shared ECS runners can retain root-owned files from an earlier
Expand Down Expand Up @@ -466,6 +467,7 @@ jobs:
OPENAI_API_KEY: '${{ secrets.OPENAI_API_KEY }}'
OPENAI_BASE_URL: '${{ secrets.OPENAI_BASE_URL }}'
OPENAI_MODEL: '${{ secrets.OPENAI_MODEL }}'
RUNNER_ENVIRONMENT: '${{ runner.environment }}'

steps:
# Shared ECS runners can retain root-owned files from an earlier
Expand Down
8 changes: 8 additions & 0 deletions scripts/tests/release-workflow.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -1203,6 +1203,14 @@ describe('release lane runner routing', () => {
}
});

it('passes the runner environment to integration test configuration', () => {
for (const name of ['integration_none', 'integration_docker']) {
expect(releaseYaml.jobs[name].env.RUNNER_ENVIRONMENT, name).toBe(
'${{ runner.environment }}',
);
}
});

it('keeps publishing and failure notification on hosted runners', () => {
expect(releaseYaml.jobs.publish['runs-on']).toBe('ubuntu-latest');
expect(releaseYaml.jobs.publish['runs-on']).not.toContain('ecs-qwen');
Expand Down
Loading