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

confine pulpcore cli checks for setups where the cli is available #921

Merged
merged 1 commit into from
Aug 26, 2024

Conversation

evgeni
Copy link
Member

@evgeni evgeni commented Aug 26, 2024

No description provided.

@evgeni evgeni force-pushed the pulpcore-cli-available branch from cf26f56 to 293688a Compare August 26, 2024 07:15
feature.any_instance.stubs(:cli_available?).returns(false)
end
result = run_check(subject)
assert result.success?, 'Check expected to succeed'
Copy link
Member Author

Choose a reason for hiding this comment

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

interestingly, checks that do not pass confinement are still reported as success, not skipped 🤷‍♀️

@evgeni
Copy link
Member Author

evgeni commented Aug 26, 2024

Verified by

% ansible-playbook pipelines/install_pipeline.yml -e pipeline_os=centos9-stream -e pipeline_type=katello -e pipeline_version=nightly -e '{"packit_prs":["https://github.com/theforeman/foreman_maintain/pull/921"]}'

@@ -15,6 +16,10 @@ class Features::Pulpcore < ForemanMaintain::Feature
end
end

def cli_available?
Copy link
Member Author

Choose a reason for hiding this comment

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

I guess, design wise, this should be moved to an own feature, but I didn't want to refactor all of this in a bugfix PR.

@evgeni evgeni merged commit 615abf0 into master Aug 26, 2024
7 checks passed
@evgeni evgeni deleted the pulpcore-cli-available branch August 26, 2024 09:55
@lpramuk
Copy link

lpramuk commented Aug 26, 2024

Successfully tested.
Applied patch downstream and Capsule 6.15.3 upgraded to 6.16.0 Snap1 successfully

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