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

fix: image digest check may meet race condition #1051

Merged
merged 1 commit into from
Feb 26, 2024

Conversation

jinqi7
Copy link
Contributor

@jinqi7 jinqi7 commented Feb 21, 2024

Description

Please include a summary of the changes and the related issue. Please also include relevant motivation and context. List any dependencies that are required for this change.

Issue ticket number and link

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

Checklist:

  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have added meaningful description with JIRA/GitHub issue key(if applicable), for example HASSuiteDescribe("STONE-123456789 devfile source")
  • I have updated labels (if needed)

@openshift-ci openshift-ci bot requested review from happybhati and mmalina February 21, 2024 04:00
tests/release/quay.go Outdated Show resolved Hide resolved
imageDigest, err := releasecommon.GetDigestWithTagInQuay(releasecommon.ReleasedImagePushRepo + ":latest")
Expect(err).ShouldNot(HaveOccurred(), fmt.Sprintf("failed while getting Digest for quay image %s with error: %+v", releasecommon.ReleasedImagePushRepo + ":latest", err))
Expect(imageDigest).To(Equal(containerImageDigest))
tagExist, err := releasecommon.DoesTagExistsInQuay(releasecommon.ReleasedImagePushRepo + ":" + imageDigest)
Copy link

Choose a reason for hiding this comment

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

are you really looking for a tag? you just want to see if the digest is there.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Changed to check digest. Thanks

@@ -294,7 +294,7 @@ func (ci CI) TestE2E() error {
}

func RunE2ETests() error {
labelFilter := utils.GetEnv("E2E_TEST_SUITE_LABEL", "!upgrade-create && !upgrade-verify && !upgrade-cleanup && !release-pipelines")
Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's for testing and will be restored.

Copy link
Contributor

@johnbieren johnbieren left a comment

Choose a reason for hiding this comment

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

LGTM

@jinqi7 jinqi7 force-pushed the fix_sha_check branch 2 times, most recently from 01e1640 to be3e7ab Compare February 22, 2024 06:03
@konflux-ci konflux-ci deleted a comment from openshift-ci bot Feb 22, 2024
@jinqi7 jinqi7 force-pushed the fix_sha_check branch 3 times, most recently from 7d8fb58 to f7a14ab Compare February 22, 2024 10:55
@konflux-ci konflux-ci deleted a comment from openshift-ci bot Feb 22, 2024
@jinqi7
Copy link
Contributor Author

jinqi7 commented Feb 22, 2024

/retest

@jinqi7 jinqi7 force-pushed the fix_sha_check branch 7 times, most recently from 4ffdeba to f81b828 Compare February 22, 2024 14:43
@jinqi7 jinqi7 force-pushed the fix_sha_check branch 4 times, most recently from 181d07d to 952fcf5 Compare February 22, 2024 15:20
@jinqi7 jinqi7 force-pushed the fix_sha_check branch 4 times, most recently from 7128767 to 7d499fa Compare February 23, 2024 01:52
@openshift-ci openshift-ci bot removed the approved label Feb 24, 2024
@jinqi7
Copy link
Contributor Author

jinqi7 commented Feb 24, 2024

/retest

2 similar comments
@jinqi7
Copy link
Contributor Author

jinqi7 commented Feb 24, 2024

/retest

@jinqi7
Copy link
Contributor Author

jinqi7 commented Feb 25, 2024

/retest

@happybhati
Copy link
Contributor

/lgtm

Copy link

Quality Gate Passed Quality Gate passed

Issues
0 New issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud

@happybhati
Copy link
Contributor

/lgtm

@openshift-ci openshift-ci bot added the lgtm label Feb 26, 2024
@jinqi7
Copy link
Contributor Author

jinqi7 commented Feb 26, 2024

/approve

Copy link

openshift-ci bot commented Feb 26, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: happybhati, jinqi7, johnbieren

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-merge-bot openshift-merge-bot bot merged commit e5c98cd into konflux-ci:main Feb 26, 2024
13 checks passed
siddardh-ra pushed a commit to siddardh-ra/e2e-tests that referenced this pull request Mar 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants