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

Update integration test dependencies #447

Merged
merged 1 commit into from
Jun 10, 2024

Conversation

komish
Copy link
Contributor

@komish komish commented Jun 7, 2024

This PR updates the python environment used for integration testing for chart-verifier to more closely match the helm certification repositories. I decided not to pursue rewriting integration tests in Go for the moment given that the scripts that are in project are also used in GHA. In effect, if/when I decide to replace those, I'll move GHA first. I didn't want to change all of this at once (this PR already contains plenty of changes).

Notable:

scripts/requirements.txt contains many version updates. This is a one-off large update, but dependabot is being integrated to manage updates more frequently and in smaller doses over time.

.github/actions/setup-python/, merged #448, is being called throughout our workflows. It's intending to simplify how many times we have to specify the python version we use through actions. Mostly a PoC, but works identically to what we had before. We can use pyproject.toml in the future for this, but if we migrated the current value from setup.cfg to pyproject, we'd have a >= instead of a pinned version - so for now, I'll pin the version and we can re-evaluate if we want to use the pyproject value to pass into setup-python.

pyproject.toml is being added, and related configurations (e.g. setup.cfg) are updated to support its use. Eventually this will be followed with a python version bump.

.github/dependabot.yml is being updated to enable dependabot updates for the pip ecosystem.

chart_good.feature / chart_test.py have both been updated to account for new changes in both pytest and pytest-bdd. Notably, Feature examples are no longer supported. We got "matrix" style testing that way, so for now, I've just replicated this by adding an extra Example column.

@komish komish requested review from mgoerens and jsm84 June 7, 2024 21:59
Copy link

@jsm84 jsm84 left a comment

Choose a reason for hiding this comment

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

lgtm

@komish komish merged commit 33d94d3 into redhat-certification:main Jun 10, 2024
6 checks passed
@komish komish deleted the update-py-deps branch June 10, 2024 20:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants