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

pin wrapnapi to force dependency errors to become more visible #17166

Merged
merged 1 commit into from
Dec 13, 2024

Conversation

evgeni
Copy link
Member

@evgeni evgeni commented Dec 13, 2024

Problem Statement

airgun bumped the selenium dep, which updates websocket-client to a version that's not compatible with the ancient openshift/kubernetes used by wrapanapi (https://github.com/openshift/openshift-restclient-python/blob/release-0.3.4/requirements.txt#L3, https://github.com/kubernetes-client/python/blob/release-3.0/requirements.txt#L9).

as we don't pin wrapanapi, the depsolver tries to find a version that works, and picks one that has azure unpinned (2.7.0!).

this gets us azure 5.0.0, but azure 5.0.0 deprecated the azure meta package in favor of service specific packages prefixed by azure- and errors out when you try to install it.

Solution

  • pin wrapanapi, so we see clearly when it can't be installed
  • fix airgun

Related Issues

@evgeni evgeni requested a review from a team as a code owner December 13, 2024 07:15
@evgeni evgeni added CherryPick PR needs CherryPick to previous branches 6.14.z Introduced in or relating directly to Satellite 6.14 6.15.z Introduced in or relating directly to Satellite 6.15 6.16.z Introduced in or relating directly to Satellite 6.16 labels Dec 13, 2024
@evgeni evgeni force-pushed the force-azure branch 2 times, most recently from cfb3a3a to 3a4fc91 Compare December 13, 2024 07:35
@evgeni evgeni changed the title pin azure to 4.0.0 to make wrapanapi work again pin airgun to make wrapanapi work again Dec 13, 2024
requirements.txt Outdated

# Get airgun, nailgun and upgrade from master
airgun @ git+https://github.com/SatelliteQE/airgun.git@master#egg=airgun
airgun @ git+https://github.com/SatelliteQE/airgun.git@00075a209e24df0e77c18b484631485bfc10f54f#egg=airgun
Copy link
Contributor

Choose a reason for hiding this comment

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

Hmm, I don't understand this fix. Won't it block us from using latest code?

Copy link
Member Author

Choose a reason for hiding this comment

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

Sure. But the latest code doesn't install, which mean's right now, we can't use it anyway.

(We can also go an revert that selenium bump in airgun, and then implement CI in airgun that checks that robottelo still works after an airgun change)

Copy link
Contributor

Choose a reason for hiding this comment

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

So this is a temporary fix? The second option sounds like a lot of work but a proper fix.

Copy link
Member

@jyejare jyejare Dec 13, 2024

Choose a reason for hiding this comment

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

Lets hold the selenium bump in airgun. If we limit ourselves for airgun here then all the other fixes made in airgun wont be applied in robottelo and test fixed by airgun would fail.

Copy link
Member Author

Choose a reason for hiding this comment

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

IMHO yes

Copy link
Contributor

Choose a reason for hiding this comment

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

Is this time to start digging in wrapanapi?

Copy link
Member Author

Choose a reason for hiding this comment

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

Probably depends on how many pitchforks and shovels you have on a Friday.

Reverting that airgun commit (and ensuring dependabot doesn't recreate that mess again) is probably a good enough fix for a Friday.

And then we can go and see how to fix wrapanapi to be compatible with dependencies released after 2017 ;-)

Copy link
Contributor

Choose a reason for hiding this comment

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

Agree :)

Copy link
Contributor

Choose a reason for hiding this comment

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

So this is a quick fix I made. It's a long time since I've played with dependencies and dependabot, please check if I didn't screw up something.
SatelliteQE/airgun#1668

Copy link
Contributor

Choose a reason for hiding this comment

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

Sounds like a plan. Acked, but I'm not yet high ranking enough to merge it:)

requirements.txt Show resolved Hide resolved
@jameerpathan111 jameerpathan111 self-requested a review December 13, 2024 08:03
requirements.txt Outdated

# Get airgun, nailgun and upgrade from master
airgun @ git+https://github.com/SatelliteQE/airgun.git@master#egg=airgun
airgun @ git+https://github.com/SatelliteQE/airgun.git@00075a209e24df0e77c18b484631485bfc10f54f#egg=airgun
Copy link
Member

@jyejare jyejare Dec 13, 2024

Choose a reason for hiding this comment

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

Lets hold the selenium bump in airgun. If we limit ourselves for airgun here then all the other fixes made in airgun wont be applied in robottelo and test fixed by airgun would fail.

lhellebr added a commit to lhellebr/airgun that referenced this pull request Dec 13, 2024
lhellebr added a commit to lhellebr/airgun that referenced this pull request Dec 13, 2024
evgeni pushed a commit to SatelliteQE/airgun that referenced this pull request Dec 13, 2024
github-actions bot pushed a commit to SatelliteQE/airgun that referenced this pull request Dec 13, 2024
@evgeni evgeni changed the title pin airgun to make wrapanapi work again pin wrapnapi to force dependency errors to become more visible Dec 13, 2024
@evgeni evgeni dismissed jyejare’s stale review December 13, 2024 11:34

airgun changes implemented

@lhellebr lhellebr requested a review from jyejare December 13, 2024 12:02
@jyejare jyejare merged commit 81f3ee7 into SatelliteQE:master Dec 13, 2024
8 checks passed
github-actions bot pushed a commit that referenced this pull request Dec 13, 2024
github-actions bot pushed a commit that referenced this pull request Dec 13, 2024
github-actions bot pushed a commit that referenced this pull request Dec 13, 2024
lhellebr added a commit to lhellebr/airgun that referenced this pull request Dec 13, 2024
lhellebr added a commit to lhellebr/airgun that referenced this pull request Dec 13, 2024
lhellebr added a commit to lhellebr/airgun that referenced this pull request Dec 13, 2024
@evgeni evgeni deleted the force-azure branch December 13, 2024 12:34
evgeni pushed a commit to SatelliteQE/airgun that referenced this pull request Dec 13, 2024
evgeni pushed a commit to SatelliteQE/airgun that referenced this pull request Dec 13, 2024
evgeni pushed a commit to SatelliteQE/airgun that referenced this pull request Dec 13, 2024
evgeni pushed a commit to SatelliteQE/airgun that referenced this pull request Dec 13, 2024
evgeni added a commit that referenced this pull request Dec 13, 2024
…le (#17169)

pin wrapnapi to force dependency errors to become more visible (#17166)

pin wrapanapi

(cherry picked from commit 81f3ee7)

Co-authored-by: Evgeni Golov <[email protected]>
evgeni added a commit that referenced this pull request Dec 13, 2024
…le (#17170)

pin wrapnapi to force dependency errors to become more visible (#17166)

pin wrapanapi

(cherry picked from commit 81f3ee7)

Co-authored-by: Evgeni Golov <[email protected]>
evgeni added a commit that referenced this pull request Dec 13, 2024
…le (#17168)

pin wrapnapi to force dependency errors to become more visible (#17166)

pin wrapanapi

(cherry picked from commit 81f3ee7)

Co-authored-by: Evgeni Golov <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
6.14.z Introduced in or relating directly to Satellite 6.14 6.15.z Introduced in or relating directly to Satellite 6.15 6.16.z Introduced in or relating directly to Satellite 6.16 CherryPick PR needs CherryPick to previous branches
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants