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

integration tests minor improvements #783

Merged
merged 4 commits into from
Jan 16, 2025

Conversation

slimreaper35
Copy link
Member

Maintainers will complete the following section

  • Commit messages are descriptive enough
  • Code coverage from testing does not decrease and new code is covered
  • Docs updated (if applicable)
  • Docs links in the code are still valid (if docs were updated)

Note: if the contribution is external (not from an organization member), the CI
pipeline will not run automatically. After verifying that the CI is safe to run:

`yarn` and `yarn classic` are used interchangeably for cachi2 requests
-> only `yarn` is among supported package managers

Our functionality for integration tests skips those not affected by
certain package manager. Since `yarn classic` is not a valid name as a
supported package manager, integration tests were never skipped, becuase
these are marked as `test_yarn_classic...` in a separate module.

Signed-off-by: Michal Šoltis <[email protected]>
Currently, the `nox -s generate-test-data` runs only on tests marked as
e2e because of passing the `PYTEST_ADDOPTS` env variable. This was
unfortunately implemented based on my wrong assumption that only e2e
tests with docker builds generate SBOM.

Fix the command and run all integration tests when someone wants to
regenerate test data based on their changes.

Signed-off-by: Michal Šoltis <[email protected]>
@slimreaper35 slimreaper35 force-pushed the tests branch 2 times, most recently from cd5cfcd to 85badba Compare January 14, 2025 09:11
Copy link
Member

@eskultety eskultety left a comment

Choose a reason for hiding this comment

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

ACK with the last commit dropped (unless you want to perform the change globally :) ).

tests/integration/test_generic.py Outdated Show resolved Hide resolved
@slimreaper35 slimreaper35 added this pull request to the merge queue Jan 16, 2025
Merged via the queue into containerbuildsystem:main with commit 03b433f Jan 16, 2025
16 checks passed
@slimreaper35 slimreaper35 deleted the tests branch January 16, 2025 14:18
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.

3 participants