8000 fix(ci): perform update of ubuntu packages earlier by simonrey1 · Pull Request #13177 · podman-desktop/podman-desktop · GitHub
[go: up one dir, main page]

Skip to content

Conversation

simonrey1
Copy link
Contributor

What does this PR do?

Fixed problem with packages installation on ubuntu.

Screenshot / video of UI

What issues does this PR fix or reference?

[#13174 ](#13174)

How to test this PR?

  • Tests are covering the bug fix or the new feature

@simonrey1 simonrey1 requested review from benoitf and a team as code owners July 11, 2025 12:22
@simonrey1 simonrey1 requested review from feloy and gastoner and removed request for a team July 11, 2025 12:22
Copy link
Contributor
coderabbitai bot commented Jul 11, 2025

Warning

Rate limit exceeded

@eqqe has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 12 minutes and 53 seconds before requesting another review.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

📥 Commits

Reviewing files that changed from the base of the PR and between 800ad8a and 7edee1b.

📒 Files selected for processing (3)
  • .github/workflows/e2e-kubernetes-main.yaml (1 hunks)
  • .github/workflows/e2e-main.yaml (1 hunks)
  • .github/workflows/pr-check.yaml (1 hunks)
📝 Walkthrough

Walkthrough

The changes reorder the apt-get update commands in multiple GitHub Actions workflow files to run immediately after adding the unstable kubic repository and its key, before installing dependencies and the CRIU package. Redundant or later apt-get update commands, including those with the --allow-insecure-repositories flag, have been removed. Additionally, after installing Podman, the workflows now explicitly display the installed Podman version and extract its version number to verify that the major version is 5; if not, the step fails and exits. There are no changes to exported or public entities.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link
Contributor
@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

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

Hey @eqqe - I've reviewed your changes - here's some feedback:

  • The repeated apt-get update and install blocks across workflows could be extracted into a reusable workflow or composite action to reduce duplication and ease maintenance.
  • Consider adding the -y flag to the criu dependency apt-get install calls to ensure non-interactive installs and avoid potential prompts in CI.
  • Since apt-key is deprecated, migrating to placing the repository GPG key in /etc/apt/trusted.gpg.d could improve compatibility with future Ubuntu releases.
Prompt for AI Agents
Please address the comments from this code review:
## Overall Comments
- The repeated apt-get update and install blocks across workflows could be extracted into a reusable workflow or composite action to reduce duplication and ease maintenance.
- Consider adding the -y flag to the criu dependency apt-get install calls to ensure non-interactive installs and avoid potential prompts in CI.
- Since apt-key is deprecated, migrating to placing the repository GPG key in /etc/apt/trusted.gpg.d could improve compatibility with future Ubuntu releases.

Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

Copy link
Contributor
@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 2

🧹 Nitpick comments (3)
.github/workflows/e2e-main.yaml (1)

111-112: Trailing whitespace – YAML-lint error

The two blank lines after podman version (lines 111-112) contain stray spaces, triggering the YAML-lint trailing-spaces rule.
Simply delete the spaces or the blank lines entirely.

.github/workflows/e2e-kubernetes-main.yaml (1)

97-98: Trailing whitespace – YAML-lint error

Line 97 (the blank line after podman version) carries extra spaces and is flagged by YAML-lint. Please remove the trailing spaces.

.github/workflows/pr-check.yaml (1)

329-332: Minor: redundant echo/blank line with spaces

Line 341 (just before the Podman version echo) has trailing spaces reported by YAML-lint. Clean-up keeps the workflow files tidy and lint-clean.

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between d8031e1 and 800ad8a.

📒 Files selected for processing (3)
  • .github/workflows/e2e-kubernetes-main.yaml (1 hunks)
  • .github/workflows/e2e-main.yaml (1 hunks)
  • .github/workflows/pr-check.yaml (1 hunks)
🧰 Additional context used
🪛 YAMLlint (1.37.1)
.github/workflows/e2e-kubernetes-main.yaml

[error] 97-97: trailing spaces

(trailing-spaces)

.github/workflows/e2e-main.yaml

[error] 111-111: trailing spaces

(trailing-spaces)

.github/workflows/pr-check.yaml

[error] 341-341: trailing spaces

(trailing-spaces)


[error] 344-344: trailing spaces

(trailing-spaces)

Comment on lines 113 to 118
PODMAN_VERSION=$(podman version | grep 'Version:' | awk '{print $2}')
if [[ "$PODMAN_VERSION" == 5.* ]]; then
echo "Podman major version is 5. Proceeding with the workflow."
else
echo "Error: Podman major version is not 5. Found: $PODMAN_VERSION"
exit 1 # Fail the step if the condition is not met
Copy link
Contributor

Choose a reason for hiding this comment

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

⚠️ Potential issue

Missing fi terminator breaks the shell block

The if [[ "$PODMAN_VERSION" == 5.* ]]; then … else … construct is not closed with a corresponding fi.
As-is, the step will abort with a “syntax error: unexpected end of file”, failing the whole job.

           echo "Error: Podman major version is not 5. Found: $PODMAN_VERSION"
           exit 1 # Fail the step if the condition is not met
+          fi
🤖 Prompt for AI Agents
In .github/workflows/e2e-main.yaml around lines 113 to 118, the shell if-else
block checking the Podman version is missing the closing 'fi' statement. To fix
this, add a 'fi' line after the 'exit 1' command to properly close the if-else
construct and prevent the syntax error.

Comment on lines 99 to 104
PODMAN_VERSION=$(podman version | grep 'Version:' | awk '{print $2}')
if [[ "$PODMAN_VERSION" == 5.* ]]; then
echo "Podman major version is 5. Proceeding with the workflow."
else
echo "Error: Podman major version is not 5. Found: $PODMAN_VERSION"
exit 1 # Fail the step if the condition is not met
Copy link
Contributor

Choose a reason for hiding this comment

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

⚠️ Potential issue

Same fi omission here

Identical to the e2e-main workflow, the if block performing the Podman version check is missing its terminating fi, which will cause the step to fail.

           echo "Error: Podman major version is not 5. Found: $PODMAN_VERSION"
           exit 1 # Fail the step if the condition is not met
+          fi
🤖 Prompt for AI Agents
In .github/workflows/e2e-kubernetes-main.yaml around lines 99 to 104, the if
statement checking the Podman version is missing its closing fi. Add the missing
fi at the end of the if block to properly terminate the conditional and prevent
the step from failing.
8000

Signed-off-by: Simon Rey <sfbrey+eqqe@gmail.com>
Copy link
Contributor
@odockal odockal left a comment

Choose a reason for hiding this comment

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

LGTM

@simonrey1 simonrey1 merged commit 5b57b04 into podman-desktop:main Jul 11, 2025
35 of 36 checks passed
8000
@podman-desktop-bot podman-desktop-bot added this to the 1.21.0 milestone Jul 11, 2025
@vzhukovs
Copy link
Contributor

@Mergifyio backport 1.20.x

Copy link
mergify bot commented Jul 11, 2025

backport 1.20.x

✅ Backports have been created

mergify bot pushed a commit that referenced this pull request Jul 11, 2025
Signed-off-by: Simon Rey <sfbrey+eqqe@gmail.com>
(cherry picked from commit 5b57b04)
vzhukovs pushed a commit that referenced this pull request Jul 11, 2025
…13181)

fix(ci): perform update of ubuntu packages earlier (#13177)


(cherry picked from commit 5b57b04)

Signed-off-by: Simon Rey <sfbrey+eqqe@gmail.com>
Co-authored-by: Simon Rey <51708585+eqqe@users.noreply.github.com>
@simonrey1 simonrey1 deleted the try-fix-build branch July 25, 2025 07:09
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.

Installation of dependency packages for podman installed from kubic repos requires updated ubuntu repos
5 participants
0