Skip to content

🌱 Update to catalogd v0.26.0 and update e2e tests #1237

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

Merged
merged 2 commits into from
Sep 9, 2024

Conversation

tmshort
Copy link
Contributor

@tmshort tmshort commented Sep 9, 2024

Fix #1115

  • Use proper labels from catalogd
  • Add better deployment checking
  • Fix broken test

This test seems broken, it's supposed to resolve again after updating to V2. The test implies that this should be the 2.0.0 version, but it's checking against 1.2.0 (which was the original version installed).

Description

Reviewer Checklist

  • API Go Documentation
  • Tests: Unit Tests (and E2E Tests, if appropriate)
  • Comprehensive Commit Messages
  • Links to related GitHub Issue(s)

* Use proper labels from catalogd
* Add better deployment checking
* Fix broken test

This test seems broken, it's supposed to resolve again after
updating to V2. The test implies that this should be the 2.0.0
version, but it's checking against 1.2.0 (which was the original
version installed).

Signed-off-by: Todd Short <[email protected]>
@tmshort tmshort requested a review from a team as a code owner September 9, 2024 18:07
@tmshort tmshort changed the title Update to catalogd v0.26.0 and update e2e tests 🌱 Update to catalogd v0.26.0 and update e2e tests Sep 9, 2024
Copy link

netlify bot commented Sep 9, 2024

Deploy Preview for olmv1 ready!

Name Link
🔨 Latest commit 5330ca0
🔍 Latest deploy log https://app.netlify.com/sites/olmv1/deploys/66df3c07539ae800081925cc
😎 Deploy Preview https://deploy-preview-1237--olmv1.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Comment on lines +716 to +717
Name: "prometheus-operator.2.0.0",
Version: "2.0.0",
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The original test seemed wrong. The catalog is updated to v2.0, but it remains as 1.2.0? That doesn't seem right. With the latest changes this now seems to be behaving as expected.

Copy link

codecov bot commented Sep 9, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 76.53%. Comparing base (f8c9077) to head (5330ca0).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1237   +/-   ##
=======================================
  Coverage   76.53%   76.53%           
=======================================
  Files          40       40           
  Lines        2340     2340           
=======================================
  Hits         1791     1791           
  Misses        392      392           
  Partials      157      157           
Flag Coverage Δ
e2e 57.64% <ø> (ø)
unit 52.47% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Comment on lines +48 to +49
# Wait for the rollout, and then wait for the deployment to be Available
kubectl_wait_rollout "olmv1-system" "deployment/catalogd-controller-manager" "60s"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The deployment is updated with the latest cert secret, so this will wait for the rollout to complete, and the next step will ensure that it's ready.

Comment on lines -47 to -48
Name: name,
Labels: map[string]string{"olm.operatorframework.io/name": name},
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This label is now added automatically by v0.26.0 of catalogd

Copy link
Member

@LalatenduMohanty LalatenduMohanty left a comment

Choose a reason for hiding this comment

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

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Sep 9, 2024
@tmshort tmshort added this pull request to the merge queue Sep 9, 2024
Merged via the queue into operator-framework:main with commit 57ac405 Sep 9, 2024
18 checks passed
@tmshort tmshort deleted the update-catd-e2e branch September 9, 2024 20:01
@skattoju skattoju mentioned this pull request Sep 25, 2024
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

E2E tests for labeling webhooks and selector
3 participants