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

chore(copybara): sync commits from Aspect-internal silo #596

Merged
merged 5 commits into from
Jan 4, 2024

Conversation

gregmagolan and others added 4 commits January 4, 2024 11:55
So the next sync is cleaner

GitOrigin-RevId: 2909828753235ea9424b43722c004e4b150869c3
…130)

This is a large refactor to principally fix a subtle bug in
MaybeReenterAspect where the exit code from the re-entrant process is
not propagated to the exit code of the parent process.

TL;DR here is that the `bazelisk.Run` function is updated to not return
both an exitCode and err but rather just an error. If there is an
exitCode to propagate from Bazel then it is done so via the ExitError
struct at that point. This change unwinds many of the places that
ExitError is created from combining the excitCode and error.

---

### Type of change

- Bug fix (change which fixes an issue)

**For changes visible to end-users**

- Suggested release notes are provided below:

Aspect CLI will now correctly propagate the exit code of the nested
Aspect CLI process if a child Aspect CLI is spawned with the re-entry
logic.

### Test plan

- New test cases added

GitOrigin-RevId: c7f7ca09030120a76a6cd5ffd06c93da95d06eda
GitOrigin-RevId: 33f06b8ffa97a31575e18cf635ef33e7d7bcb8fe
Adds `lint --fix|diff|report` bool args to apply fixes or output a diff,
while keeping the existing report output as the default.

### Type of change

- New feature or functionality (change which adds functionality)

### Test plan

- Manual testing

GitOrigin-RevId: ab7514c87f5fba12d0b7e8899cc8e51f47777657
@alexeagle alexeagle requested review from jbedard and gregmagolan and removed request for jbedard January 4, 2024 20:01
@alexeagle alexeagle force-pushed the 8AEF12339515D0A47D3EA1E9D42A18D8 branch from 6187081 to 6c79a52 Compare January 4, 2024 20:15
@alexeagle alexeagle enabled auto-merge (rebase) January 4, 2024 20:15
@alexeagle alexeagle force-pushed the 8AEF12339515D0A47D3EA1E9D42A18D8 branch from 6c79a52 to 8d23517 Compare January 4, 2024 20:33
@alexeagle alexeagle merged commit 3ee71ac into main Jan 4, 2024
8 of 10 checks passed
@alexeagle alexeagle deleted the 8AEF12339515D0A47D3EA1E9D42A18D8 branch January 4, 2024 20:49
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.

3 participants