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

dev-cmd/typecheck: Stop dry running Spoom sigil bumps #17621

Merged
merged 4 commits into from
Jul 4, 2024

Conversation

issyl0
Copy link
Member

@issyl0 issyl0 commented Jul 3, 2024

  • Have you followed the guidelines in our Contributing document?
  • Have you checked to ensure there aren't other open Pull Requests for the same change?
  • Have you added an explanation of what your changes do and why you'd like us to include them?
  • Have you written new tests for your changes? Here's an example.
  • Have you successfully run brew style with your changes locally?
  • Have you successfully run brew typecheck with your changes locally?
  • Have you successfully run brew tests with your changes locally?

- Sixteen months ago in PR 14921, I made it so that CI ran
  `brew typecheck --update --suggest-typed` and could commit the changes.
- Except it never actually ever made any changes because of the `--dry` option
  in the Spoom CLI args. Whoops!
@issyl0
Copy link
Member Author

issyl0 commented Jul 3, 2024

Oh, heh, even when it does change files it still exits 1 so Actions thinks the step has failed.

- Annoyingly `spoom srb bump` exits with a status code of 1 even if it has done work to bump files, so we need to continue so the next workflow step commits the changes.
.github/workflows/sorbet.yml Outdated Show resolved Hide resolved
Library/Homebrew/dev-cmd/typecheck.rb Outdated Show resolved Hide resolved
Library/Homebrew/dev-cmd/typecheck.rb Outdated Show resolved Hide resolved
.github/workflows/sorbet.yml Outdated Show resolved Hide resolved
Library/Homebrew/dev-cmd/typecheck.rb Outdated Show resolved Hide resolved
Library/Homebrew/dev-cmd/typecheck.rb Outdated Show resolved Hide resolved
Copy link
Member

@MikeMcQuaid MikeMcQuaid left a comment

Choose a reason for hiding this comment

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

Thanks @issyl0!

@MikeMcQuaid MikeMcQuaid enabled auto-merge July 4, 2024 07:28
@MikeMcQuaid MikeMcQuaid merged commit 21ba72b into master Jul 4, 2024
26 checks passed
@MikeMcQuaid MikeMcQuaid deleted the actually-use-spoom-in-ci branch July 4, 2024 07:38
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