Update linux_unopt CI: Increase timeout and remove --quiet flag#182162
Conversation
gaaclarke
left a comment
There was a problem hiding this comment.
This looks like the right place to me.
| timeout: 120 | ||
| properties: | ||
| config_name: linux_unopt | ||
| test_timeout_secs: "7200" |
There was a problem hiding this comment.
Worth putting a comment here that the intent is that this is temporary.
There was a problem hiding this comment.
The timeout is now in linux_unopt.json instead of here. Unfortunately, I don't think I can add a comment in a json file.
I don't think it was the right place. The linux_unopt ci/host_debug_unopt build ran here: https://ci.chromium.org/ui/p/flutter/builders/try/Linux%20Engine%20Drone/3907805/overview. In the setup_build -> run_recipe output, at the bottom you can see I updated the PR to remove the "test_timeout_secs" that I added in .ci.yaml. Instead, I add a "timeout" for the ci/host_debug_unopt build in linux_unopt.json. I think this is the right place. |
There was a problem hiding this comment.
Code Review
This pull request updates the linux_unopt CI configuration to aid in debugging a flaky build. It removes the --quiet flag from a test script to get more verbose logs and increases the build timeout to 120. My feedback includes a suggestion to document the newly added timeout property to improve clarity and maintainability.
| } | ||
| ] | ||
| ], | ||
| "timeout": 120 |
There was a problem hiding this comment.
The unit for this timeout (seconds or minutes) is not immediately clear. To improve readability and maintainability, it would be beneficial to document this timeout property for builds, including its unit (e.g., seconds or minutes), in the corresponding engine/src/flutter/ci/builders/README.md. This would help future contributors understand and modify these configurations correctly, aligning with the style guide's emphasis on readability and useful documentation.
References
- The style guide emphasizes optimizing for readability (line 29) and providing useful documentation (line 55). The unit of the timeout value is unclear, which impacts readability and maintainability. Documenting it would align with these principles. (link)
…ter#182162) Increasing the timeout should let reruns complete if the initial run fails. Right now reruns make the workflow time out, so reruns don't have time to complete. Removing the --quiet flag should help debug what's going wrong. Helps to deflake/debug flutter#182150 ## Pre-launch Checklist - [x] I read the [Contributor Guide] and followed the process outlined there for submitting PRs. - [x] I read the [Tree Hygiene] wiki page, which explains my responsibilities. - [x] I read and followed the [Flutter Style Guide], including [Features we expect every widget to implement]. - [x] I signed the [CLA]. - [x] I listed at least one issue that this PR fixes in the description above. - [x] I updated/added relevant documentation (doc comments with `///`). - [x] I added new tests to check the change I am making, or this PR is [test-exempt]. - [x] I followed the [breaking change policy] and added [Data Driven Fixes] where supported. - [x] All existing and new tests are passing. If you need help, consider asking for advice on the #hackers-new channel on [Discord]. **Note**: The Flutter team is currently trialing the use of [Gemini Code Assist for GitHub](https://developers.google.com/gemini-code-assist/docs/review-github-code). Comments from the `gemini-code-assist` bot should not be taken as authoritative feedback from the Flutter team. If you find its comments useful you can update your code accordingly, but if you are unsure or disagree with the feedback, please feel free to wait for a Flutter team member's review for guidance on which automated comments should be addressed. <!-- Links --> [Contributor Guide]: https://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md#overview [Tree Hygiene]: https://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md [test-exempt]: https://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md#tests [Flutter Style Guide]: https://github.com/flutter/flutter/blob/main/docs/contributing/Style-guide-for-Flutter-repo.md [Features we expect every widget to implement]: https://github.com/flutter/flutter/blob/main/docs/contributing/Style-guide-for-Flutter-repo.md#features-we-expect-every-widget-to-implement [CLA]: https://cla.developers.google.com/ [flutter/tests]: https://github.com/flutter/tests [breaking change policy]: https://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md#handling-breaking-changes [Discord]: https://github.com/flutter/flutter/blob/main/docs/contributing/Chat.md [Data Driven Fixes]: https://github.com/flutter/flutter/blob/main/docs/contributing/Data-driven-Fixes.md
…ter#182162) Increasing the timeout should let reruns complete if the initial run fails. Right now reruns make the workflow time out, so reruns don't have time to complete. Removing the --quiet flag should help debug what's going wrong. Helps to deflake/debug flutter#182150 ## Pre-launch Checklist - [x] I read the [Contributor Guide] and followed the process outlined there for submitting PRs. - [x] I read the [Tree Hygiene] wiki page, which explains my responsibilities. - [x] I read and followed the [Flutter Style Guide], including [Features we expect every widget to implement]. - [x] I signed the [CLA]. - [x] I listed at least one issue that this PR fixes in the description above. - [x] I updated/added relevant documentation (doc comments with `///`). - [x] I added new tests to check the change I am making, or this PR is [test-exempt]. - [x] I followed the [breaking change policy] and added [Data Driven Fixes] where supported. - [x] All existing and new tests are passing. If you need help, consider asking for advice on the #hackers-new channel on [Discord]. **Note**: The Flutter team is currently trialing the use of [Gemini Code Assist for GitHub](https://developers.google.com/gemini-code-assist/docs/review-github-code). Comments from the `gemini-code-assist` bot should not be taken as authoritative feedback from the Flutter team. If you find its comments useful you can update your code accordingly, but if you are unsure or disagree with the feedback, please feel free to wait for a Flutter team member's review for guidance on which automated comments should be addressed. <!-- Links --> [Contributor Guide]: https://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md#overview [Tree Hygiene]: https://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md [test-exempt]: https://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md#tests [Flutter Style Guide]: https://github.com/flutter/flutter/blob/main/docs/contributing/Style-guide-for-Flutter-repo.md [Features we expect every widget to implement]: https://github.com/flutter/flutter/blob/main/docs/contributing/Style-guide-for-Flutter-repo.md#features-we-expect-every-widget-to-implement [CLA]: https://cla.developers.google.com/ [flutter/tests]: https://github.com/flutter/tests [breaking change policy]: https://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md#handling-breaking-changes [Discord]: https://github.com/flutter/flutter/blob/main/docs/contributing/Chat.md [Data Driven Fixes]: https://github.com/flutter/flutter/blob/main/docs/contributing/Data-driven-Fixes.md
Increasing the timeout should let reruns complete if the initial run fails. Right now reruns make the workflow time out, so reruns don't have time to complete.
Removing the --quiet flag should help debug what's going wrong.
Helps to deflake/debug #182150
Pre-launch Checklist
///).If you need help, consider asking for advice on the #hackers-new channel on Discord.
Note: The Flutter team is currently trialing the use of Gemini Code Assist for GitHub. Comments from the
gemini-code-assistbot should not be taken as authoritative feedback from the Flutter team. If you find its comments useful you can update your code accordingly, but if you are unsure or disagree with the feedback, please feel free to wait for a Flutter team member's review for guidance on which automated comments should be addressed.