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

OCP4: Fix e2e result on OCP 4.14 changes #11207

Merged
merged 1 commit into from
Nov 29, 2023

Conversation

Vincent056
Copy link
Contributor

@Vincent056 Vincent056 commented Oct 17, 2023

Some of the file permission issues has been addressed on OpenShift 4.14 from 644 to 600 , let's change the expected e2e result to match that

@github-actions
Copy link

Start a new ephemeral environment with changes proposed in this pull request:

Fedora Environment
Open in Gitpod

Oracle Linux 8 Environment
Open in Gitpod

@Vincent056
Copy link
Contributor Author

/test ocp-cis

@openshift-ci
Copy link

openshift-ci bot commented Oct 17, 2023

@Vincent056: The specified target(s) for /test were not found.
The following commands are available to trigger required jobs:

  • /test e2e-aws-ocp4-cis
  • /test e2e-aws-ocp4-cis-node
  • /test e2e-aws-ocp4-e8
  • /test e2e-aws-ocp4-high
  • /test e2e-aws-ocp4-high-node
  • /test e2e-aws-ocp4-moderate
  • /test e2e-aws-ocp4-moderate-node
  • /test e2e-aws-ocp4-pci-dss
  • /test e2e-aws-ocp4-pci-dss-node
  • /test e2e-aws-ocp4-stig
  • /test e2e-aws-ocp4-stig-node
  • /test e2e-aws-rhcos4-e8
  • /test e2e-aws-rhcos4-high
  • /test e2e-aws-rhcos4-moderate
  • /test e2e-aws-rhcos4-stig
  • /test images

Use /test all to run the following jobs that were automatically triggered:

  • pull-ci-ComplianceAsCode-content-master-images

In response to this:

/test ocp-cis

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.

@Vincent056
Copy link
Contributor Author

/test e2e-aws-ocp4-high
/test e2e-aws-ocp4-high-node

Copy link
Member

Choose a reason for hiding this comment

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

Do we need e2e test files for 4.6, 4.7, 4.8 and 4.9?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

no, they are out of support cycle

@Vincent056
Copy link
Contributor Author

/test e2e-aws-ocp4-high
/test e2e-aws-ocp4-high-node

@rhmdnd
Copy link
Collaborator

rhmdnd commented Nov 2, 2023

/test e2e-aws-ocp4-high-node

@rhmdnd
Copy link
Collaborator

rhmdnd commented Nov 2, 2023

Looks like we have a legitimate failure;

     helpers.go:808: Result - Name: e2e-high-node-master-file-permissions-etcd-member - Status: PASS - Severity: medium
    helpers.go:815: E2E-FAILURE: The expected result for the file_permissions_etcd_member rule didn't match. Expected 'map[master:FAIL worker:NOT-APPLICABLE]', Got 'PASS'
    helpers.go:808: Result - Name: e2e-high-node-master-file-permissions-etcd-pki-cert-files - Status: PASS - Severity: medium
    helpers.go:881: Rule file_permissions_etcd_pki_cert_files matched expected result
    helpers.go:808: Result - Name: e2e-high-node-master-file-permissions-ip-allocations - Status: NOT-APPLICABLE - Severity: medium
    helpers.go:808: Result - Name: e2e-high-node-master-file-permissions-kube-apiserver - Status: PASS - Severity: medium
    helpers.go:815: E2E-FAILURE: The expected result for the file_permissions_kube_apiserver rule didn't match. Expected 'map[master:FAIL worker:NOT-APPLICABLE]', Got 'PASS' 

@marcusburghardt marcusburghardt added the OpenShift OpenShift product related. label Nov 8, 2023
Copy link
Member

Choose a reason for hiding this comment

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

There are still test files for 4.7, 4.8, 4.9 and 4.10.

Copy link
Member

Choose a reason for hiding this comment

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

Maintenance for 4.10 ended September 10, 2023

@@ -0,0 +1,4 @@
---
default_result:
master: FAIL
Copy link
Member

Choose a reason for hiding this comment

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

From what I could test this rule is passing on OCP 4.13

Copy link
Contributor Author

Choose a reason for hiding this comment

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

that's correct

@@ -0,0 +1,4 @@
---
default_result:
master: FAIL
Copy link
Member

Choose a reason for hiding this comment

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

This rule was passing on the 4.13 cluster I got.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

that's correct, sorry I missed it

@yuumasato
Copy link
Member

Looks like we have a legitimate failure;

     helpers.go:808: Result - Name: e2e-high-node-master-file-permissions-etcd-member - Status: PASS - Severity: medium
    helpers.go:815: E2E-FAILURE: The expected result for the file_permissions_etcd_member rule didn't match. Expected 'map[master:FAIL worker:NOT-APPLICABLE]', Got 'PASS'
    helpers.go:808: Result - Name: e2e-high-node-master-file-permissions-etcd-pki-cert-files - Status: PASS - Severity: medium
    helpers.go:881: Rule file_permissions_etcd_pki_cert_files matched expected result
    helpers.go:808: Result - Name: e2e-high-node-master-file-permissions-ip-allocations - Status: NOT-APPLICABLE - Severity: medium
    helpers.go:808: Result - Name: e2e-high-node-master-file-permissions-kube-apiserver - Status: PASS - Severity: medium
    helpers.go:815: E2E-FAILURE: The expected result for the file_permissions_kube_apiserver rule didn't match. Expected 'map[master:FAIL worker:NOT-APPLICABLE]', Got 'PASS' 

It looks like the CI test was ran on OCP 4.13?
INFO[2023-11-02T14:27:23Z] Building release latest from a snapshot of ocp/4.13

Can you confirm that?

Some of the file permission issues has been addressed on OpenShift 4.14 from 644 to 600 and some of them are back ported to 4.13, let's change the expected e2e result to match that
@Vincent056
Copy link
Contributor Author

Looks like we have a legitimate failure;

     helpers.go:808: Result - Name: e2e-high-node-master-file-permissions-etcd-member - Status: PASS - Severity: medium
    helpers.go:815: E2E-FAILURE: The expected result for the file_permissions_etcd_member rule didn't match. Expected 'map[master:FAIL worker:NOT-APPLICABLE]', Got 'PASS'
    helpers.go:808: Result - Name: e2e-high-node-master-file-permissions-etcd-pki-cert-files - Status: PASS - Severity: medium
    helpers.go:881: Rule file_permissions_etcd_pki_cert_files matched expected result
    helpers.go:808: Result - Name: e2e-high-node-master-file-permissions-ip-allocations - Status: NOT-APPLICABLE - Severity: medium
    helpers.go:808: Result - Name: e2e-high-node-master-file-permissions-kube-apiserver - Status: PASS - Severity: medium
    helpers.go:815: E2E-FAILURE: The expected result for the file_permissions_kube_apiserver rule didn't match. Expected 'map[master:FAIL worker:NOT-APPLICABLE]', Got 'PASS' 

It looks like the CI test was ran on OCP 4.13? INFO[2023-11-02T14:27:23Z] Building release latest from a snapshot of ocp/4.13

Can you confirm that?

yes we are running on 4.13

@Vincent056
Copy link
Contributor Author

/test e2e-aws-ocp4-high-node

Copy link

codeclimate bot commented Nov 28, 2023

Code Climate has analyzed commit ec4735f and detected 0 issues on this pull request.

The test coverage on the diff in this pull request is 100.0% (50% is the threshold).

This pull request will bring the total coverage in the repository to 58.5%.

View more on Code Climate.

@Vincent056
Copy link
Contributor Author

/test e2e-aws-ocp4-high-node

Copy link
Collaborator

@rhmdnd rhmdnd left a comment

Choose a reason for hiding this comment

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

/lgtm

@yuumasato
Copy link
Member

Merging despite failures of testing-farm:centos-stream-8-x86_64 and testing-farm:centos-stream-9-x86_64 .
The tests are passing but overall result is WARN which is flagging them as fail.
Moreover, they are not directly related to OCP4.

@yuumasato yuumasato merged commit 49d1527 into ComplianceAsCode:master Nov 29, 2023
32 of 34 checks passed
@Mab879 Mab879 added the Test Suite Update in Test Suite. label Nov 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OpenShift OpenShift product related. Test Suite Update in Test Suite.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants