about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorYukang <moorekang@gmail.com>2025-06-02 20:57:44 +0800
committerGitHub <noreply@github.com>2025-06-02 20:57:44 +0800
commit8f240de112ee0b0a062ad0a3d14dc5c09ca4ecf7 (patch)
tree6f9ce7bff4ae585b8cc0ee6b38de666266056be2 /src
parentad00cbe860c762ebe966c84ecb6407d7d1f28a99 (diff)
parent28cf70229287d9327b38fcdbbc58503eaf075552 (diff)
downloadrust-8f240de112ee0b0a062ad0a3d14dc5c09ca4ecf7.tar.gz
rust-8f240de112ee0b0a062ad0a3d14dc5c09ca4ecf7.zip
Rollup merge of #141897 - Kobzol:fix-citool-tests, r=marcoieni
Fix citool tests when executed locally

They couldn't be executed locally before due to some additional environment reads.

I also investigated the annoying rebuilds that we see on CI all the time, and they are caused by `ring`'s build script. It should be fixed in the next ring release (https://github.com/briansmith/ring/issues/2525), so we can just wait for that and then update `ring`.

r? `@marcoieni`
Diffstat (limited to 'src')
-rw-r--r--src/ci/citool/tests/jobs.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ci/citool/tests/jobs.rs b/src/ci/citool/tests/jobs.rs
index a61d0fe2435..fcdca899e06 100644
--- a/src/ci/citool/tests/jobs.rs
+++ b/src/ci/citool/tests/jobs.rs
@@ -51,6 +51,8 @@ fn get_matrix(event_name: &str, commit_msg: &str, branch_ref: &str) -> String {
         .env("GITHUB_EVENT_NAME", event_name)
         .env("COMMIT_MESSAGE", commit_msg)
         .env("GITHUB_REF", branch_ref)
+        .env("GITHUB_RUN_ID", "123")
+        .env("GITHUB_RUN_ATTEMPT", "1")
         .stdout(Stdio::piped())
         .output()
         .expect("Failed to execute command");