mirror of
https://github.com/openai/codex.git
synced 2026-11-06 20:20:34 +00:00
codex: fix CI failure on PR #31429
This commit is contained in:
committed by
Adam Perry @ OpenAI
parent
1adb6b09a6
commit
fb1ac4f627
@@ -76,12 +76,6 @@ jobs:
|
||||
shell: bash
|
||||
run: ./scripts/check-module-bazel-lock.sh
|
||||
|
||||
- name: Bazel end-to-end benchmark smoke test
|
||||
if: matrix.os == 'ubuntu-24.04' && matrix.target == 'x86_64-unknown-linux-gnu'
|
||||
env:
|
||||
BUILDBUDDY_API_KEY: ${{ secrets.BUILDBUDDY_API_KEY }}
|
||||
run: just bench-e2e-smoke
|
||||
|
||||
- name: bazel test //...
|
||||
env:
|
||||
BUILDBUDDY_API_KEY: ${{ secrets.BUILDBUDDY_API_KEY }}
|
||||
@@ -136,6 +130,65 @@ jobs:
|
||||
if: always() && !cancelled()
|
||||
uses: ./.github/actions/check-clean-worktree
|
||||
|
||||
e2e-benchmark-smoke:
|
||||
# Bazel-backed macrobenchmarks pay a cold build cost that would consume
|
||||
# most of the ordinary Bazel test job's 30-minute budget.
|
||||
timeout-minutes: 45
|
||||
runs-on: ubuntu-24.04
|
||||
name: Bazel end-to-end benchmark smoke
|
||||
environment:
|
||||
name: bazel
|
||||
deployment: false
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||
with:
|
||||
ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }}
|
||||
persist-credentials: false
|
||||
|
||||
- name: Prepare Bazel CI
|
||||
id: prepare_bazel
|
||||
uses: ./.github/actions/prepare-bazel-ci
|
||||
with:
|
||||
target: x86_64-unknown-linux-gnu
|
||||
cache-scope: bazel-e2e-benchmark-smoke
|
||||
|
||||
- name: Bazel end-to-end benchmark smoke test
|
||||
env:
|
||||
BUILDBUDDY_API_KEY: ${{ secrets.BUILDBUDDY_API_KEY }}
|
||||
run: |
|
||||
./.github/scripts/run-bazel-ci.sh -- \
|
||||
test \
|
||||
--compilation_mode=fastbuild \
|
||||
--@rules_rust//rust/settings:extra_rustc_flag=-Cdebug-assertions=no \
|
||||
--@rules_rust//rust/settings:extra_exec_rustc_flag=-Cdebug-assertions=no \
|
||||
--cache_test_results=no \
|
||||
--test_output=streamed \
|
||||
--test_arg=--test \
|
||||
-- \
|
||||
//codex-rs:e2e-benchmarks
|
||||
|
||||
- name: Upload Bazel execution logs
|
||||
if: always() && !cancelled()
|
||||
continue-on-error: true
|
||||
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
|
||||
with:
|
||||
name: bazel-execution-logs-e2e-benchmark-smoke
|
||||
path: ${{ runner.temp }}/bazel-execution-logs
|
||||
if-no-files-found: ignore
|
||||
|
||||
- name: Save bazel repository cache
|
||||
if: always() && !cancelled() && steps.prepare_bazel.outputs.repository-cache-hit != 'true'
|
||||
continue-on-error: true
|
||||
uses: actions/cache/save@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5.0.4
|
||||
with:
|
||||
path: ${{ steps.prepare_bazel.outputs.repository-cache-path }}
|
||||
key: ${{ steps.prepare_bazel.outputs.repository-cache-key }}
|
||||
|
||||
- name: Check for a clean worktree
|
||||
if: always() && !cancelled()
|
||||
uses: ./.github/actions/check-clean-worktree
|
||||
|
||||
test-windows-shard:
|
||||
# Split the Windows Bazel test leg across separate Windows hosts. Jobs with
|
||||
# BuildBuddy credentials use Linux RBE for build actions; test execution
|
||||
|
||||
Reference in New Issue
Block a user