Skip to content

CNF-16459: Update cnf-tests image #1286

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

rbaturov
Copy link
Contributor

This PR corrects the cnf-tests image to point to the correct image version of this release.
We plan to create a corresponding PR for this down to 4.14 at least.

@rbaturov rbaturov changed the title Update cnf-tests image CNF-16459: Update cnf-tests image Jan 20, 2025
@openshift-ci-robot openshift-ci-robot added the jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. label Jan 20, 2025
@openshift-ci-robot
Copy link
Contributor

openshift-ci-robot commented Jan 20, 2025

@rbaturov: This pull request references CNF-16459 which is a valid jira issue.

Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the bug to target the "4.19.0" version, but no target version was set.

In response to this:

This PR corrects the cnf-tests image to point to the correct image version of this release.
We plan to create a corresponding PR for this down to 4.14 at least.

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 requested review from jmencak and MarSik January 20, 2025 14:23
@ffromani
Copy link
Contributor

/approve
/lgtm

but we would need some form of automation to make sure images are kept up to date

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Jan 20, 2025
Copy link
Contributor

openshift-ci bot commented Jan 20, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ffromani, rbaturov

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 Jan 20, 2025
@rbaturov
Copy link
Contributor Author

/approve /lgtm

but we would need some form of automation to make sure images are kept up to date

Yes I'm thinking how this is going to be done

@rbaturov
Copy link
Contributor Author

/approve /lgtm

but we would need some form of automation to make sure images are kept up to date

I just realized we were already branched out from 4.18. Will update the PR to point this image to 4.19 instead.

Corrected the cnf-tests image to point to the correct image version of this release.

Signed-off-by: Ronny Baturov <rbaturov@redhat.com>
@rbaturov rbaturov force-pushed the fix-cnf-tests-image-version branch from f7de46e to 0dc0443 Compare January 20, 2025 15:03
@openshift-ci openshift-ci bot removed the lgtm Indicates that a PR is ready to be merged. label Jan 20, 2025
@jmencak
Copy link
Contributor

jmencak commented Jan 20, 2025

quay.io/openshift-kni/cnf-tests:4.19 seems to be available

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Jan 20, 2025
@Tal-or
Copy link
Contributor

Tal-or commented Jan 20, 2025

/approve /lgtm

but we would need some form of automation to make sure images are kept up to date

We'll probably add a lane to validate that the specified image is aligned with the branch version

@@ -13,7 +13,7 @@ func init() {
cnfTestsImage = os.Getenv("CNF_TESTS_IMAGE")

if cnfTestsImage == "" {
cnfTestsImage = "cnf-tests:4.14"
cnfTestsImage = "cnf-tests:4.19"
Copy link
Contributor

Choose a reason for hiding this comment

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

We need a fix that does not hardcode the image version.

Copy link
Contributor

Choose a reason for hiding this comment

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

That is actually hard to do here, the source has no way to find out the version of a build from a different repo. That is why the env var is here.

Copy link
Contributor

Choose a reason for hiding this comment

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

this is the fallback default, it's a fair assumption to go in lockstop with the NTO branch/version. The existing env var can and should be used for fine tuning, leaving the hardcoded value to sane defaults.

@openshift-ci openshift-ci bot removed the lgtm Indicates that a PR is ready to be merged. label Jan 20, 2025
Copy link
Contributor

@swatisehgal swatisehgal left a comment

Choose a reason for hiding this comment

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

/lgtm

Adding label back, not sure why the label was removed.

/retest

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Jan 23, 2025
@bartwensley
Copy link
Contributor

What about this hardcoded (and outdated) reference to a specific commit in the cluster-node-tuning repo (where some of the test code resides):
https://github.com/openshift-kni/cnf-features-deploy/blob/27523944b9eccb991d67dff325d370ddacacd1fb/go.mod#L208

@rbaturov
Copy link
Contributor Author

What about this hardcoded (and outdated) reference to a specific commit in the cluster-node-tuning repo (where some of the test code resides): https://github.com/openshift-kni/cnf-features-deploy/blob/27523944b9eccb991d67dff325d370ddacacd1fb/go.mod#L208

As far as I understood, we don't run tests from this vendored repo.
All the tests we run are from the git submodules.
We need to investigate which package imports that and see whether we should bump this. I'm on it

Copy link
Contributor

@Tal-or Tal-or left a comment

Choose a reason for hiding this comment

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

The CI won't pass.
This is because of:

cmd2 := []string{"/bin/bash", "-c", "tmux new -d 'LD_PRELOAD=libhugetlbfs.so HUGETLB_MORECORE=yes top -b > /dev/null'"}

libhugetlbfs.so is no longer exist in cnf-tests:4.19

We should fix the test similar to what was done in:
openshift-kni/cnf-features-deploy@b8df9f2

@openshift-ci openshift-ci bot removed the lgtm Indicates that a PR is ready to be merged. label Feb 4, 2025
Copy link
Contributor

openshift-ci bot commented Mar 17, 2025

@rbaturov: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/e2e-hypershift-pao 0dc0443 link true /test e2e-hypershift-pao
ci/prow/unit 0dc0443 link true /test unit
ci/prow/e2e-gcp-pao 0dc0443 link true /test e2e-gcp-pao
ci/prow/e2e-gcp-pao-updating-profile 0dc0443 link true /test e2e-gcp-pao-updating-profile
ci/prow/e2e-gcp-pao-workloadhints 0dc0443 link true /test e2e-gcp-pao-workloadhints

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-sigs/prow repository. I understand the commands that are listed here.

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-reference Indicates that this PR references a valid Jira ticket of any type.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants