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

homebrew: fix incorrect handling of aliases #9255

Conversation

UnknownPlatypus
Copy link
Contributor

SUMMARY

Fixes #9240

ISSUE TYPE
  • Bugfix Pull Request
COMPONENT NAME

homebrew

ADDITIONAL INFORMATION

Second assert returns this:

changed: [localhost] => changed=true
  changed_pkgs:
  - sqlite3
  msg: 'Changed: 1, Unchanged: 1'
  unchanged_pkgs:
  - sqlite
@ansibullbot
Copy link
Collaborator

@ansibullbot ansibullbot added bug This issue/PR relates to a bug has_issue integration tests/integration module module plugins plugin (any type) tests tests needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR labels Dec 15, 2024
Copy link
Collaborator

@russoz russoz left a comment

Choose a reason for hiding this comment

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

hi @UnknownPlatypus

A couple of minor adjustments and I think we're good.

tests/integration/targets/homebrew/tasks/formulae.yml Outdated Show resolved Hide resolved
tests/integration/targets/homebrew/tasks/formulae.yml Outdated Show resolved Hide resolved
tests/integration/targets/homebrew/tasks/formulae.yml Outdated Show resolved Hide resolved
@UnknownPlatypus
Copy link
Contributor Author

UnknownPlatypus commented Dec 16, 2024

@russoz Thanks for the review, I've also made a little change to handle casks correctly, the issue was flagged by the previous test run

@ansibullbot ansibullbot removed the needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR label Dec 16, 2024
Copy link
Collaborator

@russoz russoz left a comment

Choose a reason for hiding this comment

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

LGTM

@felixfontein felixfontein added check-before-release PR will be looked at again shortly before release and merged if possible. backport-10 Automatically create a backport for the stable-10 branch and removed check-before-release PR will be looked at again shortly before release and merged if possible. labels Dec 16, 2024
@felixfontein felixfontein merged commit 9452a2c into ansible-collections:main Dec 20, 2024
129 checks passed
Copy link

patchback bot commented Dec 20, 2024

Backport to stable-10: 💚 backport PR created

✅ Backport PR branch: patchback/backports/stable-10/9452a2c8ac06cd12446d5fe500d6c24506f62075/pr-9255

Backported as #9289

🤖 @patchback
I'm built with octomachinery and
my source is open — https://github.com/sanitizers/patchback-github-app.

patchback bot pushed a commit that referenced this pull request Dec 20, 2024
* Add failing test (See commit description)

Second assert returns this:

changed: [localhost] => changed=true
  changed_pkgs:
  - sqlite3
  msg: 'Changed: 1, Unchanged: 1'
  unchanged_pkgs:
  - sqlite

* Extract proper package_name from brew info using alisases

* Add changelog fragment

* Fix pep8

* Make sure sqlite is uninstalled beforehand

* Use `package_result is (not) changed` syntax in assertions

* Register more explicit names

* Fix handling of casks

(cherry picked from commit 9452a2c)
@felixfontein
Copy link
Collaborator

@UnknownPlatypus thanks for fixing this!
@russoz thanks for reviewing!

felixfontein pushed a commit that referenced this pull request Dec 20, 2024
…ing of aliases (#9289)

homebrew: fix incorrect handling of aliases (#9255)

* Add failing test (See commit description)

Second assert returns this:

changed: [localhost] => changed=true
  changed_pkgs:
  - sqlite3
  msg: 'Changed: 1, Unchanged: 1'
  unchanged_pkgs:
  - sqlite

* Extract proper package_name from brew info using alisases

* Add changelog fragment

* Fix pep8

* Make sure sqlite is uninstalled beforehand

* Use `package_result is (not) changed` syntax in assertions

* Register more explicit names

* Fix handling of casks

(cherry picked from commit 9452a2c)

Co-authored-by: Thibaut Decombe <[email protected]>
@UnknownPlatypus UnknownPlatypus deleted the fix-homebrew-incorrect-alias-handling branch December 21, 2024 00:27
erichoog pushed a commit to erichoog/community.general that referenced this pull request Dec 23, 2024
* Add failing test (See commit description)

Second assert returns this:

changed: [localhost] => changed=true
  changed_pkgs:
  - sqlite3
  msg: 'Changed: 1, Unchanged: 1'
  unchanged_pkgs:
  - sqlite

* Extract proper package_name from brew info using alisases

* Add changelog fragment

* Fix pep8

* Make sure sqlite is uninstalled beforehand

* Use `package_result is (not) changed` syntax in assertions

* Register more explicit names

* Fix handling of casks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-10 Automatically create a backport for the stable-10 branch bug This issue/PR relates to a bug has_issue integration tests/integration module module plugins plugin (any type) tests tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

homebrew: state: present not respected for some packages
4 participants