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

OCPBUGS-31423: Try to pull installer image before installing #679

Merged
merged 1 commit into from
Apr 9, 2024

Conversation

CrystalChun
Copy link
Contributor

https://issues.redhat.com/browse/OCPBUGS-31423
Split the install command into two parts: pulling the installer image then running the install command. Pulling separately and ahead of time prevents possible flakes when pulling the image. Mostly relevant for day 2 hosts since we don't run the container image availability command before installing.

/cc @tsorya

@openshift-ci openshift-ci bot requested a review from tsorya April 3, 2024 21:43
@openshift-ci-robot openshift-ci-robot added jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. jira/invalid-bug Indicates that a referenced Jira bug is invalid for the branch this PR is targeting. labels Apr 3, 2024
@openshift-ci-robot
Copy link

@CrystalChun: This pull request references Jira Issue OCPBUGS-31423, which is invalid:

  • expected the bug to target the "4.16.0" version, but no target version was set

Comment /jira refresh to re-evaluate validity if changes to the Jira bug are made, or edit the title of this pull request to link to a different bug.

The bug has been updated to refer to the pull request using the external bug tracker.

In response to this:

https://issues.redhat.com/browse/OCPBUGS-31423
Split the install command into two parts: pulling the installer image then running the install command. Pulling separately and ahead of time prevents possible flakes when pulling the image. Mostly relevant for day 2 hosts since we don't run the container image availability command before installing.

/cc @tsorya

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.

@openshift-ci openshift-ci bot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Apr 3, 2024
Copy link

codecov bot commented Apr 3, 2024

Codecov Report

Attention: Patch coverage is 0% with 30 lines in your changes are missing coverage. Please review.

Project coverage is 60.04%. Comparing base (645a980) to head (50dcef8).
Report is 3 commits behind head on master.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #679      +/-   ##
==========================================
- Coverage   60.48%   60.04%   -0.44%     
==========================================
  Files          74       74              
  Lines        3662     3692      +30     
==========================================
+ Hits         2215     2217       +2     
- Misses       1290     1319      +29     
+ Partials      157      156       -1     
Files Coverage Δ
src/commands/actions/install_cmd.go 74.85% <0.00%> (-16.40%) ⬇️

... and 1 file with indirect coverage changes

return err
}

func pullImage(pullTimeoutSeconds int64, image string) error {
Copy link
Contributor

Choose a reason for hiding this comment

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

Lets validate if image exists beforehand, another way we will pull it all the time

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good idea! Added it!

https://issues.redhat.com/browse/OCPBUGS-31423
Split the install command into two parts: pulling the installer
image then running the install command. Pulling separately and
ahead of time prevents possible flakes when pulling the image.
Mostly relevant for day 2 hosts since we don't run the container
image availability command before installing.
@CrystalChun
Copy link
Contributor Author

/retest-required

1 similar comment
@CrystalChun
Copy link
Contributor Author

/retest-required

@tsorya
Copy link
Contributor

tsorya commented Apr 8, 2024

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Apr 8, 2024
@CrystalChun
Copy link
Contributor Author

/jira refresh

@openshift-ci-robot openshift-ci-robot added jira/valid-bug Indicates that a referenced Jira bug is valid for the branch this PR is targeting. and removed jira/invalid-bug Indicates that a referenced Jira bug is invalid for the branch this PR is targeting. labels Apr 8, 2024
@openshift-ci-robot
Copy link

@CrystalChun: This pull request references Jira Issue OCPBUGS-31423, which is valid. The bug has been moved to the POST state.

3 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target version (4.16.0) matches configured target version for branch (4.16.0)
  • bug is in the state ASSIGNED, which is one of the valid states (NEW, ASSIGNED, POST)

No GitHub users were found matching the public email listed for the QA contact in Jira (gamado@redhat.com), skipping review request.

In response to this:

/jira refresh

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.

@CrystalChun
Copy link
Contributor Author

/approve

@CrystalChun
Copy link
Contributor Author

Oh @tsorya may I get your approval? 😄

@tsorya
Copy link
Contributor

tsorya commented Apr 8, 2024

/approve

Copy link

openshift-ci bot commented Apr 8, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: CrystalChun, tsorya

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-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Apr 8, 2024
@openshift-ci-robot
Copy link

/retest-required

Remaining retests: 0 against base HEAD 9a76bf4 and 2 for PR HEAD 50dcef8 in total

Copy link

openshift-ci bot commented Apr 9, 2024

@CrystalChun: all tests passed!

Full PR test history. Your PR dashboard.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@openshift-merge-bot openshift-merge-bot bot merged commit a7a0bc0 into openshift:master Apr 9, 2024
10 checks passed
@openshift-ci-robot
Copy link

@CrystalChun: Jira Issue OCPBUGS-31423: Some pull requests linked via external trackers have merged:

The following pull requests linked via external trackers have not merged:

These pull request must merge or be unlinked from the Jira bug in order for it to move to the next state. Once unlinked, request a bug refresh with /jira refresh.

Jira Issue OCPBUGS-31423 has not been moved to the MODIFIED state.

In response to this:

https://issues.redhat.com/browse/OCPBUGS-31423
Split the install command into two parts: pulling the installer image then running the install command. Pulling separately and ahead of time prevents possible flakes when pulling the image. Mostly relevant for day 2 hosts since we don't run the container image availability command before installing.

/cc @tsorya

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.

@openshift-bot
Copy link
Contributor

[ART PR BUILD NOTIFIER]

This PR has been included in build ose-agent-installer-node-agent-container-v4.16.0-202404090113.p0.ga7a0bc0.assembly.stream.el9 for distgit ose-agent-installer-node-agent.
All builds following this will include this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. jira/valid-bug Indicates that a referenced Jira bug is valid for the branch this PR is targeting. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. lgtm Indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants