Skip to content

Make CI green again (exclude --tls-details podman tests)#2044

Open
kolyshkin wants to merge 3 commits intocontainers:mainfrom
kolyshkin:untangle-skip
Open

Make CI green again (exclude --tls-details podman tests)#2044
kolyshkin wants to merge 3 commits intocontainers:mainfrom
kolyshkin:untangle-skip

Conversation

@kolyshkin
Copy link
Collaborator

@kolyshkin kolyshkin commented Mar 10, 2026

  • tests/podman: exclude --tls-details tests

    Those were recently added in podman PR 28208 and are failing here.
    As most probably they have nothing to do with OCI runtime, and are
    failing, let's skip them.

This PR also includes some cleanup of tests/podman/run-tests.sh which
I forgot to submit earlier, so I'm shoving it here.

The -skip argument grew too big, also comments about why we exclude this
or that became detached and redundant.

Let's return to sanity.

While at it, remove the redundant .* at the beginning and the end of
regexp, and the redundant/mistaken * at the end of "podman exec 12*".

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
First, remove -progress flag, since ginkgo complains:

> --progress is deprecated .  The functionality provided by --progress
> was confusing and is no longer needed.  Use --show-node-events instead
> to see node entry and exit events included in the timeline of failed and
> verbose specs.  Or you can run with -vv to always see all node events.

Second, replace "-vv" with "-v --show-node-events" to be slightly less
verbose.

Third, remove "exclude_graphdriver_devicemapper" tag since it is no
longer used (hooray to that).

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
Those were recently added in podman PR 28208 and are failing here.
As most probably they have nothing to do with OCI runtime, and are
failing, let's skip them.

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
@gemini-code-assist
Copy link

Summary of Changes

Hello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request aims to stabilize the continuous integration (CI) pipeline by addressing failing Podman tests and improving the test execution script. It specifically excludes a newly introduced set of --tls-details tests that were causing failures and are deemed irrelevant to the OCI runtime. Additionally, the PR includes a cleanup of the test script, making the management of skipped tests more organized and easier to understand.

Highlights

  • CI Stability: Excluded --tls-details podman tests from the CI pipeline to resolve recent failures, as these tests are not relevant to the OCI runtime.
  • Test Script Refactoring: Refactored the tests/podman/run-tests.sh script to manage skipped tests using a more readable and maintainable bash array, replacing a single long regex string.

🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console.

Changelog
  • tests/podman/run-tests.sh
    • Refactored the test skipping mechanism from a single regex string to a bash array for improved readability and maintainability.
    • Added --tls-details tests to the list of skipped tests.
    • Adjusted ginkgo command line flags, removing -vv and -progress and adding -v --show-node-events, and updated tags.
Activity
  • No specific activity or review comments have been recorded for this pull request yet.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request aims to fix the CI by excluding a failing test. It also includes a significant and beneficial refactoring of how skipped tests are managed in tests/podman/run-tests.sh, improving readability and maintainability. My review includes a critical point about a removed build tag that might reintroduce CI failures, and a suggestion to make the script more robust.


ginkgo --focus='.*' --skip="$SKIP_REGEX" \
-v --show-node-events --trace \
-tags "seccomp ostree selinux" \

Choose a reason for hiding this comment

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

high

The exclude_graphdriver_devicemapper build tag was removed. Since the test environment is configured to use the overlay storage driver (as seen on line 25), this tag is likely necessary to exclude tests specific to devicemapper that would otherwise run and fail. If its removal was unintentional, it should be restored to prevent CI failures.

Suggested change
-tags "seccomp ostree selinux" \
-tags "seccomp ostree selinux exclude_graphdriver_devicemapper" \

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Too bad you're not reading commit messages 👎🏻

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@gemini-code-assist see previous reply

Choose a reason for hiding this comment

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

Thank you for pointing that out. My analysis was based solely on the provided diff and the common practice of excluding devicemapper tests when overlay is the primary storage driver in the test environment. If the commit message clarifies that the exclude_graphdriver_devicemapper tag is no longer necessary for this specific test setup, then my concern is addressed.

# Not related to runtime.
'--tls-details'
)
SKIP_REGEX=$(IFS='|'; echo "${SKIP_TESTS[*]}")

Choose a reason for hiding this comment

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

medium

Using echo to build the regex can be fragile. If any of the test names in SKIP_TESTS were, for example, -n, echo would interpret it as an option rather than a string to print, leading to an incorrect regex. Using printf and paste is a more robust way to join the array elements that is not susceptible to this issue.

Suggested change
SKIP_REGEX=$(IFS='|'; echo "${SKIP_TESTS[*]}")
SKIP_REGEX=$(printf '%s\n' "${SKIP_TESTS[@]}" | paste -sd '|')

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I don't see such behavior on my system

[kir@kir-tp1 crun]$ IFS="|"; SKIP_TESTS=("-n" "-e" "\t\t\txxx\t\t\t"); echo "${SKIP_TESTS[*]}"
-n|-e|\t\t\txxx\t\t\t

This is because [*] (rather than [@] as you suggested) is used, and it concatenates all values into one long string, and it doesn't matter if it contains -n or something similar that can be interpreted as echo option. The only possible way is to have something like -n as the ONLY option, but this is highly unlikely here.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@gemini-code-assist see previous reply

Choose a reason for hiding this comment

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

You are correct that echo "${SKIP_TESTS[*]}" concatenates the array elements into a single string before echo processes it, which mitigates the specific issue of -n being interpreted as an option when it's the only argument.

However, the printf '%s\n' "${SKIP_TESTS[@]}" | paste -sd '|' approach remains more robust for general string manipulation. It explicitly prints each element as a separate string and then joins them, which is less susceptible to unexpected interpretations by echo if an array element were to contain other strings that echo might interpret as options (e.g., -e followed by a string, or other less common echo flags). While the current test names might not trigger such issues, using printf and paste provides a more predictable and safer way to construct the regex string from an array.

@kolyshkin kolyshkin marked this pull request as ready for review March 11, 2026 00:31
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.

1 participant