Skip to content

GH-50674: Add support for recovering Yum repositories - #50677

Closed
KHARSHAVARDHAN-eng wants to merge 3 commits into
apache:mainfrom
KHARSHAVARDHAN-eng:gh-50674-yum-recover
Closed

GH-50674: Add support for recovering Yum repositories#50677
KHARSHAVARDHAN-eng wants to merge 3 commits into
apache:mainfrom
KHARSHAVARDHAN-eng:gh-50674-yum-recover

Conversation

@KHARSHAVARDHAN-eng

@KHARSHAVARDHAN-eng KHARSHAVARDHAN-eng commented Jul 28, 2026

Copy link
Copy Markdown

Summary

This PR updates the source verification jobs to use Ubuntu 24.04, as requested in GH-50666.

The release verification workflows are migrated from Ubuntu 22.04 to Ubuntu 24.04, allowing them to use the system-provided Python 3.12. It also removes obsolete Ubuntu 22.04 verification jobs where equivalent Ubuntu 24.04 jobs already exist and cleans up the temporary Miniforge workaround introduced in GH-50649 where it is no longer required.

Changes

  • Update source verification jobs from Ubuntu 22.04 to Ubuntu 24.04.
  • Use the system-provided Python 3.12 for Ubuntu 24.04 verification jobs.
  • Remove obsolete Ubuntu 22.04 verification jobs from the verification matrix where equivalent Ubuntu 24.04 jobs already exist.
  • Remove the temporary Ubuntu 22.04 Miniforge workaround where it is no longer necessary.
  • Keep the release verification workflow aligned with the existing Ubuntu 24.04 migration.

Validation

Performed the following validation:

  • Reviewed the updated workflow configuration for correctness.
  • Verified that obsolete Ubuntu 22.04 jobs were removed only where equivalent Ubuntu 24.04 jobs already exist.
  • Confirmed that the Miniforge workaround is removed only where it is no longer required.
  • Validated the modified GitHub Actions workflow syntax.

The remaining validation will be performed by the project's CI after the pull request is opened.

Related Issue

Closes #50666

* Remove Ubuntu 22.04 from the release source verification task matrix.
* Update the release verification GitHub Actions workflow to use Ubuntu 24.04.
* Update the Linux wheel verification task to use Ubuntu 24.04.
* Update the default Ubuntu version used by the release verification Docker environment.
* Remove the obsolete Ubuntu 22.04 release verification Dockerfile.
…adata of Yum repositories

### Rationale for this change

In general, we don't need to use dev/release/binary-recover.sh. We need this when binary repository metadata on Artifactory gets broken or out of sync. PR apache#46277 added support for APT repositories recovery; this PR adds equivalent support for Yum repositories.

### What changes are included in this PR?

1. Add environment variables RECOVER_ALMALINUX, RECOVER_AMAZON_LINUX, RECOVER_CENTOS in binary-recover.sh and pass YUM_TARGETS to Docker runner.
2. Add yum:recover:download, yum:recover:update, yum:recover:upload, and yum:recover Rake tasks in binary-task.rb.
3. Update Downloader#download repodata path filtering so package (.rpm) downloads are not excluded during recovery downloads.

### Are these changes tested?

Yes. Ruby syntax, bash syntax, and Rake task registration were verified locally.

### Are there any user-facing changes?

No.

* GitHub Issue: apache#50674
@github-actions

Copy link
Copy Markdown

⚠️ GitHub issue #50674 has been automatically assigned in GitHub to PR creator.

@github-actions

Copy link
Copy Markdown

⚠️ GitHub issue #50674 has been automatically assigned in GitHub to PR creator.

@raulcd raulcd left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Hi @KHARSHAVARDHAN-eng you've opened 6 PRs in less than a day. We do appreciate your effort on helping (or your tokens) but those PRs are all messed up and contain commits from the other PRs. Please, fix your workflow.
I'd recommend opening one or two PR's at a time and trying to get them to the finish line. We appreciate quality over quantity.
Opening PRs that are not ready avoids other people to work on them as we see that someone is already working on them, could you take that into account?

@kou

kou commented Jul 28, 2026

Copy link
Copy Markdown
Member

@kou kou closed this Jul 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Release][CI] Use Ubuntu 24.04 for source verification jobs

3 participants