mirror of
https://github.com/openai/codex.git
synced 2026-11-03 19:53:25 +00:00
ci: preserve Bazel arguments on Windows
This commit is contained in:
@@ -32,7 +32,7 @@ runs:
|
||||
shell: bash
|
||||
run: |
|
||||
bazel_targets="$(./tools/argument-comment-lint/list-bazel-targets.sh)"
|
||||
./.github/scripts/run_bazel_ci.py \
|
||||
MSYS2_ARG_CONV_EXCL='*' ./.github/scripts/run_bazel_ci.py \
|
||||
-- \
|
||||
build \
|
||||
--config=argument-comment-lint \
|
||||
|
||||
@@ -41,7 +41,7 @@ read_query_labels() {
|
||||
query_stdout="$(mktemp)"
|
||||
query_stderr="$(mktemp)"
|
||||
|
||||
if ! ./.github/scripts/run_bazel_query_ci.py \
|
||||
if ! MSYS2_ARG_CONV_EXCL='*' ./.github/scripts/run_bazel_query_ci.py \
|
||||
--keep_going \
|
||||
--output=label \
|
||||
-- "$query" >"$query_stdout" 2>"$query_stderr"; then
|
||||
@@ -72,7 +72,7 @@ if [[ "${RUNNER_OS:-}" == "Windows" ]]; then
|
||||
fi
|
||||
fi
|
||||
|
||||
./.github/scripts/run_bazel_ci.py \
|
||||
MSYS2_ARG_CONV_EXCL='*' ./.github/scripts/run_bazel_ci.py \
|
||||
-- \
|
||||
build \
|
||||
"${bazel_lint_args[@]}" \
|
||||
|
||||
@@ -112,7 +112,7 @@ jobs:
|
||||
--test_verbose_timeout_warnings
|
||||
--build_metadata=COMMIT_SHA=${GITHUB_SHA}
|
||||
)
|
||||
./.github/scripts/run_bazel_ci.py \
|
||||
MSYS2_ARG_CONV_EXCL='*' ./.github/scripts/run_bazel_ci.py \
|
||||
"${bazel_wrapper_args[@]}" \
|
||||
-- \
|
||||
"${bazel_test_args[@]}" \
|
||||
@@ -192,7 +192,7 @@ jobs:
|
||||
|
||||
bazel_test_query='tests(//...) except tests(//third_party/v8:all) except attr(tags, "manual", tests(//...))'
|
||||
mapfile -t bazel_targets < <(
|
||||
./.github/scripts/run_bazel_query_ci.py --output=label -- "${bazel_test_query}" \
|
||||
MSYS2_ARG_CONV_EXCL='*' ./.github/scripts/run_bazel_query_ci.py --output=label -- "${bazel_test_query}" \
|
||||
| LC_ALL=C sort
|
||||
)
|
||||
|
||||
@@ -224,7 +224,7 @@ jobs:
|
||||
--build_metadata=TAG_windows_test_shard=${BAZEL_TEST_SHARD}
|
||||
)
|
||||
|
||||
./.github/scripts/run_bazel_ci.py \
|
||||
MSYS2_ARG_CONV_EXCL='*' ./.github/scripts/run_bazel_ci.py \
|
||||
--print-failed-action-summary \
|
||||
--print-failed-test-logs \
|
||||
--windows-cross-compile \
|
||||
@@ -313,7 +313,7 @@ jobs:
|
||||
--build_metadata=TAG_windows_native_main=true
|
||||
)
|
||||
|
||||
./.github/scripts/run_bazel_ci.py \
|
||||
MSYS2_ARG_CONV_EXCL='*' ./.github/scripts/run_bazel_ci.py \
|
||||
--print-failed-action-summary \
|
||||
--print-failed-test-logs \
|
||||
-- \
|
||||
@@ -412,7 +412,7 @@ jobs:
|
||||
bazel_targets+=("${target}")
|
||||
done <<< "${bazel_target_lines}"
|
||||
|
||||
./.github/scripts/run_bazel_ci.py \
|
||||
MSYS2_ARG_CONV_EXCL='*' ./.github/scripts/run_bazel_ci.py \
|
||||
--print-failed-action-summary \
|
||||
"${bazel_wrapper_args[@]}" \
|
||||
-- \
|
||||
@@ -510,7 +510,7 @@ jobs:
|
||||
bazel_targets+=("${target}")
|
||||
done <<< "${bazel_target_lines}"
|
||||
|
||||
./.github/scripts/run_bazel_ci.py \
|
||||
MSYS2_ARG_CONV_EXCL='*' ./.github/scripts/run_bazel_ci.py \
|
||||
"${bazel_wrapper_args[@]}" \
|
||||
-- \
|
||||
build \
|
||||
@@ -524,7 +524,7 @@ jobs:
|
||||
BUILDBUDDY_API_KEY: ${{ secrets.BUILDBUDDY_API_KEY }}
|
||||
shell: bash
|
||||
run: |
|
||||
./.github/scripts/run_bazel_ci.py \
|
||||
MSYS2_ARG_CONV_EXCL='*' ./.github/scripts/run_bazel_ci.py \
|
||||
--remote-download-toplevel \
|
||||
--print-failed-action-summary \
|
||||
-- \
|
||||
|
||||
@@ -135,7 +135,7 @@ jobs:
|
||||
shell: bash
|
||||
run: |
|
||||
bazel_targets="$(./tools/argument-comment-lint/list-bazel-targets.sh)"
|
||||
./.github/scripts/run_bazel_ci.py \
|
||||
MSYS2_ARG_CONV_EXCL='*' ./.github/scripts/run_bazel_ci.py \
|
||||
-- \
|
||||
build \
|
||||
--config=argument-comment-lint \
|
||||
|
||||
@@ -90,7 +90,7 @@ jobs:
|
||||
# BuildBuddy credentials are unavailable. This workflow needs the
|
||||
# built `codex` binary on disk afterwards, so ask the wrapper to
|
||||
# override CI's default remote_download_minimal behavior.
|
||||
./.github/scripts/run_bazel_ci.py \
|
||||
MSYS2_ARG_CONV_EXCL='*' ./.github/scripts/run_bazel_ci.py \
|
||||
--remote-download-toplevel \
|
||||
-- \
|
||||
build \
|
||||
@@ -103,7 +103,7 @@ jobs:
|
||||
# the build instead of guessing which Bazel convenience symlink is
|
||||
# available on the runner.
|
||||
cquery_output="$(
|
||||
./.github/scripts/run_bazel_ci.py \
|
||||
MSYS2_ARG_CONV_EXCL='*' ./.github/scripts/run_bazel_ci.py \
|
||||
-- \
|
||||
cquery \
|
||||
--output=files \
|
||||
|
||||
@@ -23,7 +23,7 @@ done
|
||||
# continue with a partial list if `bazel query` fails. Target discovery is
|
||||
# local on all platforms.
|
||||
manual_rust_test_targets="$(
|
||||
./.github/scripts/run_bazel_query_ci.py \
|
||||
MSYS2_ARG_CONV_EXCL='*' ./.github/scripts/run_bazel_query_ci.py \
|
||||
--output=label \
|
||||
-- 'kind("rust_test rule", attr(tags, "manual", //codex-rs/... except //codex-rs/v8-poc/...))'
|
||||
)"
|
||||
|
||||
@@ -10,7 +10,7 @@ cd "${repo_root}"
|
||||
# Add only those manual rust_test targets explicitly so inline `#[cfg(test)]`
|
||||
# call sites are linted without pulling in unrelated manual release targets.
|
||||
manual_rust_test_targets="$(
|
||||
./.github/scripts/run_bazel_query_ci.py \
|
||||
MSYS2_ARG_CONV_EXCL='*' ./.github/scripts/run_bazel_query_ci.py \
|
||||
--output=label \
|
||||
-- 'kind("rust_test rule", attr(tags, "manual", //codex-rs/...))'
|
||||
)"
|
||||
|
||||
Reference in New Issue
Block a user