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

Run all tests for backports or when there are test changes #882

Closed
wants to merge 5 commits into from

Conversation

petrutlucian94
Copy link
Contributor

We're adding a few checks to the integration tests workflow. We'll use the "weekly" tag in case of backports (targeting the release-* branches) and whenever there are test changes.

The runner labels used by the nightly job are not correctly
evaluated.

We'll fix this by switching to the newly added one-string node
labels.
The containerd base dir setting is currently ignored when joining
nodes. The reason is that yaml parser ignores a struct field which
is marked as private. Making it public fixes the issue.

At the same time, the test expects the default containerd folders
to be missing when configured to use a different base dir.
However, the tests are currently placing the registry settings
in /etc/containerd. We also get an empty /run/containerd folder.
For now, we'll update the test to ignore these folders.

There's also an os.path.join call that doesn't produce the expected
result if the last element is an absolute path, we'll need to remove
a slash when constructing the paths.
We're adding a few checks to the integration tests workflow. We'll
use the "weekly" tag in case of backports (targeting the release-*
branches) and whenever there are test changes.
@petrutlucian94 petrutlucian94 requested a review from a team as a code owner December 10, 2024 08:19
@petrutlucian94 petrutlucian94 marked this pull request as draft December 10, 2024 08:19
@petrutlucian94
Copy link
Contributor Author

Based on #876, I'll mark this PR as done once the other one merges.

Copy link
Contributor

@bschimke95 bschimke95 left a comment

Choose a reason for hiding this comment

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

Thanks @petrutlucian94 - minor change, then we can merge this.

# Run all tests if there are test changes. In case of a PR, we'll
# get a merge commit that includes all changes.
if git diff HEAD HEAD~1 --name-only | grep "tests/"; then
tags="weekly"
Copy link
Contributor

Choose a reason for hiding this comment

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

this needs to be up_to_weekly otherwise only the weekly tags are executed. Same below.
See

combine_tags("up_to_nightly", PULL_REQUEST, NIGHTLY)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good point, thanks!

@petrutlucian94
Copy link
Contributor Author

Closed in favor of #876

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