Skip to content

[5.10] Reduce rebuilds when running buildbot_incremental presets in succession #69168

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

Conversation

edymtt
Copy link
Contributor

@edymtt edymtt commented Oct 13, 2023

Explanation: explicitly set lit-args for buildbot_incremental,*,build presets, so that when we run matching buildbot_incremental,*,test= on the same build folder we don't have any unnecessary rebuilds in LLVM
Radar: rdar://116922016
Scope: buildbot_incremental,*,build presets
Risk: low

  • buildbot_incremental,*,test presets are currently specifying the same value for lit-args
  • at worst build times will remain the same instead of descreasing

Testing: run at desk a build of buildbot_incremental,tools=RA,stdlib=RD,build  followed by buildbot_incremental,tools=RA,stdlib=RD,test=macOS,type=device, and checked there is no rebuild of compiler-rt
Reviewed by:

(cherry picked from commit 6cf157e)

…uccession

We have some configurations in which we run a preset that only builds
the compiler, and then a few ones to tests such binary, e.g.

```
buildbot_incremental,tools=RA,stdlib=RD,build
buildbot_incremental,tools=RA,stdlib=RD,test=macOS,type=device
buildbot_incremental,tools=RA,stdlib=RD,test=iOS,type=simulator
buildbot_incremental,tools=RA,stdlib=RD,test=watchOS,type=simulator
```

Contrary to the other presets, in the first preset we did not specify
"--lit-args" since it is not necessary -- however that plays a part in
the configuration of compiler-rt, causing an unwanted rebuild when that
parameter is specified in the following preset.

Addresses rdar://116922016

(cherry picked from commit 6cf157e)
@edymtt edymtt requested a review from shahmishal October 13, 2023 16:40
@edymtt edymtt requested a review from a team as a code owner October 13, 2023 16:40
@edymtt
Copy link
Contributor Author

edymtt commented Oct 13, 2023

@swift-ci please test

@edymtt edymtt changed the title [5.10] Reduce rebuilds when running buildbot_incremental presets in s uccession [5.10] Reduce rebuilds when running buildbot_incremental presets in succession Oct 13, 2023
@edymtt
Copy link
Contributor Author

edymtt commented Oct 13, 2023

@swift-ci please build toolchain

@edymtt
Copy link
Contributor Author

edymtt commented Oct 13, 2023

@swift-ci please build toolchain macOS

@edymtt edymtt merged commit d6c681e into swiftlang:release/5.10 Oct 16, 2023
@edymtt edymtt deleted the edymtt/specify-lit-args-to-reduce-rebuilds-5.10 branch October 23, 2023 14:34
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.

2 participants