Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI: add an async timer to kill ctest before the Buildkite job times out #3121

Merged
merged 7 commits into from
Mar 28, 2022
Merged

CI: add an async timer to kill ctest before the Buildkite job times out #3121

merged 7 commits into from
Mar 28, 2022

Conversation

DilumAluthge
Copy link
Contributor

@DilumAluthge DilumAluthge commented Mar 27, 2022

TODO:

  • Make sure that if we set the Buildkite timeout to 14, it immediately throws an error and exits. (And nothing is uploaded.)
  • Make sure that if we set the Buildkite timeout to 17, it SIGTERMs the ctest process, and the TMPDIR is uploaded as a build artifact.
  • Set the Buildkite timeout to 45 and make sure that CI is green.

@DilumAluthge DilumAluthge changed the title [WIP] CI: add an async timer to kill ctest before the Buildkite job times out CI: add an async timer to kill ctest before the Buildkite job times out Mar 28, 2022
@DilumAluthge DilumAluthge marked this pull request as ready for review March 28, 2022 00:40
@DilumAluthge
Copy link
Contributor Author

@Keno I think this is good to go.

@@ -3,8 +3,8 @@ agents:
sandbox.jl: "true"
os: "linux"
steps:
- label: "x86_64"
key: "x86_64"
- label: "Test"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

left over?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've changed it to Run Tests (x86_64), which I think is more descriptive than just listing the architecture.

@@ -118,7 +144,7 @@ mktempdir(my_temp_parent_dir) do dir
end

buildkite_upload_cmd = `buildkite-agent artifact upload $(dst_file_name)`
if is_buildkite && !success(proc)
if !success(proc)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

still buildkite specific?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@DilumAluthge Any reason this condition got removed?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, so I was thinking that it seems unlikely that anyone would ever run the capture_tmpdir.jl script outside of CI, so I removed the "check if this is Buildkite" logic for simplicity.

That being said, if we anticipate that people might want to run this script locally, we should add that logic back.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, that's fine. Just wanted to check that it was intentional.

@@ -3,8 +3,8 @@ agents:
sandbox.jl: "true"
os: "linux"
steps:
- label: "Test"
key: "Test"
- label: "Run Tests (x86_64)"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No spaces, I believe.

@Keno Keno merged commit 6849bba into rr-debugger:master Mar 28, 2022
@DilumAluthge DilumAluthge deleted the dpa/ci-timeout branch March 28, 2022 18:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants