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

aws-sam-cli 1.70.0 (new formula) #120653

Closed
wants to merge 1 commit into from

Conversation

chenrui333
Copy link
Member

  • Have you followed the guidelines for contributing?
  • Have you ensured that your commits follow the commit style guide?
  • Have you checked that there aren't other open pull requests for the same formula update/change?
  • Have you built your formula locally with brew install --build-from-source <formula>, where <formula> is the name of the formula you're submitting?
  • Is your test running fine brew test <formula>, where <formula> is the name of the formula you're submitting?
  • Does your build pass brew audit --strict <formula> (after doing brew install --build-from-source <formula>)? If this is a new formula, does it pass brew audit --new <formula>?

@BrewTestBot BrewTestBot added the automerge-skip `brew pr-automerge` will skip this pull request label Jan 15, 2023
@chenrui333 chenrui333 added python Python use is a significant feature of the PR or issue new formula PR adds a new formula to Homebrew/homebrew-core labels Jan 15, 2023
@chenrui333

This comment was marked as resolved.

@chenrui333 chenrui333 added the linux Linux is specifically affected label Jan 15, 2023
@chenrui333 chenrui333 removed the linux Linux is specifically affected label Jan 15, 2023
aws-sam-cli: remove non-native arch `aws-lambda-rie` binary

Signed-off-by: Rui Chen <rui@chenrui.dev>
@BrewTestBot
Copy link
Member

:shipit: @p-linnane has triggered a merge.

@mndeveci
Copy link

Hi @chenrui333 & @p-linnane

This is Mehmet from SAM CLI team, can we remove AWS SAM CLI from core repo until we align about its distribution? We've just made a SAM CLI release but it hasn't been updated in Homebrew yet.

@torresxb1
Copy link

torresxb1 commented Jan 23, 2023

Following up on @mndeveci 's message above, we tried running brew bump-formula-pr aws-sam-cli --version 1.70.1, but got:

Warning: This formula has resources that may need to be updated.
Error: You need to bump this formula manually since the new URL
and old URL are both:
  https://api.github.com/repos/aws/aws-sam-cli/tarball/v1.70.1

To unblock our releases we think these changes might need to be reverted until we're aligned on this, since this seems to be causing our formula to not auto-update like it used to before.

@chenrui333
Copy link
Member Author

chenrui333 commented Jan 24, 2023

Let's not revert this change, I just created a new PR making sure the formula is up to date.

There are several solutions that I can see:

  • azure-cli team has some sort of template to populate resources that your team can probably do the same (this is the code reference)
  • or I will need to add some fix into that junit-xml dependency issue (it is not an issue for this formula, but for all python formulae depending on junit-xml), right now brew bump --open-pr is using pypi to resolve the dependencies, which is not quite ideal
  • or we as maintainers/contributors will ensure it is always up to date.

Does that sound good?

@torresxb1
Copy link

Hi @chenrui333, thanks for the response. But how do we ensure in the short term that our releases are automatically updated? brew install aws-sam-cli used to grab the latest version as soon as we published it, but now we'd have to rely on the homebrew maintainers. For now we had to point users to install with brew install aws/tap/aws-sam-cli to get the latest version, and it's probably not a good experience from SAM CLI to our users to suddenly change the installation command for customers (and a lot might miss this)

@chenrui333
Copy link
Member Author

Hi @chenrui333, thanks for the response. But how do we ensure in the short term that our releases are automatically updated? brew install aws-sam-cli used to grab the latest version as soon as we published it, but now we'd have to rely on the homebrew maintainers. For now we had to point users to install with brew install aws/tap/aws-sam-cli to get the latest version, and it's probably not a good experience from SAM CLI to our users to suddenly change the installation command for customers (and a lot might miss this)

for users who are using tap, they will continue using tap until there is a tap migration. For users who choose to use core tap, that means, they need to wait for the maintainer/contributor to bump it (yeah, there is some delay)

@chenrui333
Copy link
Member Author

I will see if I can work out some workaround for brew bump experience.

@chenrui333
Copy link
Member Author

alright, we just shipped aws-sam-cli 1.71.0.

@chenrui333
Copy link
Member Author

@mndeveci @torresxb1, hope you are doing well today, thanks to @brianebeyer's efforts of uploading the new pypi resource for junit-xml, the bump should work smoothly now. Let me know if you have issues of creating new version bump PRs. 🎉

@chenrui333
Copy link
Member Author

I also create this PR for automate the version bump, let me know if that works.

@torresxb1
Copy link

torresxb1 commented Jan 25, 2023

Hi @chenrui333 , thanks for the quick followup! I just tried running the brew command to bump the version again but got this at the end: Error: "aws-sam-cli" contains non-PyPI resources. Please update the resources manually.

Then I tried running again and:

$ brew bump-formula-pr aws-sam-cli --version 1.71.0
Warning: This formula has resources that may need to be updated.
Error: You need to bump this formula manually since the new URL
and old URL are both:
  https://files.pythonhosted.org/packages/bf/a3/d31cca8dc6a6b129fa316d26280ee2a01904907eda0f58c3169181c37c7c/aws-sam-cli-1.71.0.tar.gz

Any pointers on if there's something else we should do?

@chenrui333
Copy link
Member Author

Hi @chenrui333 , thanks for the quick followup! I just tried running the brew command to bump the version again but got this at the end: Error: "aws-sam-cli" contains non-PyPI resources. Please update the resources manually.

Then I tried running again and:

$ brew bump-formula-pr aws-sam-cli --version 1.71.0
Warning: This formula has resources that may need to be updated.
Error: You need to bump this formula manually since the new URL
and old URL are both:
  https://files.pythonhosted.org/packages/bf/a3/d31cca8dc6a6b129fa316d26280ee2a01904907eda0f58c3169181c37c7c/aws-sam-cli-1.71.0.tar.gz

Any pointers on if there's something else we should do?

there is a open PR for fixing the non-pypi resource #121430

And that should be resolved after it. But I dont know why you have the resources being the same

@p-linnane
Copy link
Member

@torresxb1 Is your local copy of the formula already on 1.71.0? You won't be able to use bump-formula-pr unless its on an outdated version.

@torresxb1
Copy link

@p-linnane ah gotcha. Is brew update-reset the recommended approach to resetting the local copy of the formula in case of failures to bump like this one? That seemed to work (although the bump still fails because of the fix that's waiting on a PR linked above)

@chenrui333
Copy link
Member Author

Yes, brew update-reset is the one 😄

@chenrui333
Copy link
Member Author

@torresxb1 can you give the brew bump a retry? Should be good now.

@torresxb1
Copy link

@chenrui333 I see our latest version is already up on brew, but I'll try on our next release. Thank you so much! 🙏

@github-actions github-actions bot added the outdated PR was locked due to age label Feb 25, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 25, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
automerge-skip `brew pr-automerge` will skip this pull request new formula PR adds a new formula to Homebrew/homebrew-core outdated PR was locked due to age python Python use is a significant feature of the PR or issue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants