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 SLE15 tests #11172

Merged
Merged

Conversation

svet-se
Copy link
Contributor

@svet-se svet-se commented Oct 4, 2023

Description:

  • Override the crontabs package for sle15, and install the python-rpm in the test suite for sle15 Dockerfile

Rationale:

  • Add some fixes so the Bash and Ansible tests can be executed without errors

@openshift-ci openshift-ci bot added the needs-ok-to-test Used by openshift-ci bot. label Oct 4, 2023
@openshift-ci
Copy link

openshift-ci bot commented Oct 4, 2023

Hi @svet-se. Thanks for your PR.

I'm waiting for a ComplianceAsCode member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

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.

@github-actions
Copy link

github-actions bot commented Oct 4, 2023

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

Fedora Environment
Open in Gitpod

Oracle Linux 8 Environment
Open in Gitpod

@svet-se svet-se requested review from a team as code owners October 4, 2023 14:44
Comment on lines 12 to 15
- alinux2:
check_id: installed_OS_is_alinux2
name: cpe:/o:alinux:alibaba_cloud_linux:2
title: Alibaba Cloud Linux 2
Copy link
Collaborator

Choose a reason for hiding this comment

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

@svet-se What is the reason of these whitespace-only changes?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@jan-cerny it was generated by running "python ./tests/test_product_stability.py --update-reference-data ./products ./tests/data/product_stability" to update the test data

Copy link
Member

Choose a reason for hiding this comment

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

Sounds like we either have to update the tool to generate files that do not disrupt existing files in terms of indentation or only the meaningful changes are kept in this PR (removing all unnecessary white spaces).

Copy link
Contributor Author

@svet-se svet-se Oct 10, 2023

Choose a reason for hiding this comment

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

It looks to me like a fix for test_product_stability.py, but for some reason, the files with the new indentation are not regenerated. IMHO this indentation should be OK. @ggbecker please tell me your thoughts about this. There is also an option to add a parameter for a particular product, i.e. to regenerate the test files only for SLE in this case, not for all products in the directory (but in the particular case we caught 2 products without test files).

Copy link
Contributor

Choose a reason for hiding this comment

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

I can confirm that when I run on my setup python ./tests/test_product_stability.py --update-reference-data ./products ./tests/data/product_stability I don't get the changes in the indentation so seems like the yaml generator , used in the test_product_stability tool has some environment dependency

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I've reverted the latest commit and just updated the sle15 test data

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@teacup-on-rockingchair it seems that the issue is related to the Python version, I could confirm that with 3.11 there is no issue and the format is correct.

@codeclimate
Copy link

codeclimate bot commented Oct 10, 2023

Code Climate has analyzed commit b2c2bc6 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 57.0%.

View more on Code Climate.

Copy link
Contributor

@teacup-on-rockingchair teacup-on-rockingchair left a comment

Choose a reason for hiding this comment

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

👍

@teacup-on-rockingchair teacup-on-rockingchair merged commit 711add0 into ComplianceAsCode:master Oct 12, 2023
37 checks passed
@Mab879 Mab879 added this to the 0.1.71 milestone Oct 12, 2023
@Mab879 Mab879 added the Test Suite Update in Test Suite. label Oct 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-ok-to-test Used by openshift-ci bot. Test Suite Update in Test Suite.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants