Skip to content

Conversation

@LecrisUT
Copy link
Contributor

@LecrisUT LecrisUT commented Jan 6, 2026

This converts the old script used to migrate the zuul users to instead do what zuul-config-generator did.

Merge after #672

RELEASE NOTES BEGIN

Fedora-CI users can be enrolled by running the script scripts/enroll-users.py. This replaces the script zuul-config-generator that was used in the Zuul CI.

RELEASE NOTES END

@centosinfra-prod-github-app
Copy link
Contributor

@centosinfra-prod-github-app
Copy link
Contributor

centosinfra-prod-github-app bot added a commit that referenced this pull request Jan 12, 2026
Migrate Zuul CI users to Fedora CI

TODO:

 Update the package list with all the current Zuul CI users
 Prepare announcement email, see scripts/migrate-zuul-users.py
 Do the announcement and gather feedback (devel-lists, discussion)
 Merge and profit?
 Disable Zuul CI for dist-git PRs (Full disablement requires at least packit/packit-service#2920)
 Adjust the script to instead add new contributors similar to zuul-config-generator (Handled in #679)

Blocked by packit/packit-service#2856
RELEASE NOTES BEGIN
Zuul CI users have been migrated to Fedora CI
RELEASE NOTES END

Reviewed-by: František Lachman <flachman@redhat.com>
Reviewed-by: Cristian Le <github@lecris.me>
Reviewed-by: Nikola Forró
Reviewed-by: Laura Barcziová
Reviewed-by: Vít Ondruch
Signed-off-by: Cristian Le <git@lecris.dev>
@LecrisUT LecrisUT force-pushed the feat/enrolment-script branch from 3c4aa1e to f1a3637 Compare January 12, 2026 11:53
@centosinfra-prod-github-app
Copy link
Contributor

Copy link
Member

@majamassarini majamassarini left a comment

Choose a reason for hiding this comment

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

The new script looks good to me.
I am only wondering whether we should also keep the old "bulk" script.
I don't know how we are supposed to deal with orphaned packages. Should we run the bulk script once a year (or more) to get rid of not-maintained packages? In that case the old script probably needs some adjustments.

Actually, I see there is an orphan maintainer in pagure_bz.json; should we add a special flag, in the new script, for removing its packages instead of adding them?

Alternatively, we could do nothing, since orphaned packages shouldn't generate work for us. However, if an orphaned package becomes maintained again, should we already be managing it, or is it better for the new maintainers to enroll it?

@lbarcziova or @nforro WDYT?

@LecrisUT
Copy link
Contributor Author

The new script looks good to me.
I am only wondering whether we should also keep the old "bulk" script.

I don't think so. We are not merging any PRs in zuul to enroll new users there, and even if we need to do it, we will handle it manually as needed.

Alternatively, we could do nothing, since orphaned packages shouldn't generate work for us.

I am leaning towards this. Hopefully this script is not long-lived also, and we could replace the jenkins handler for the PRs as soon as possible.

@nforro
Copy link
Member

nforro commented Jan 26, 2026

I am only wondering whether we should also keep the old "bulk" script.

I'm confused. What is the old "bulk" script?

I don't know how we are supposed to deal with orphaned packages. Should we run the bulk script once a year (or more) to get rid of not-maintained packages?

Isn't this just a temporary measure until the switch to default happens in about a month? At which point there will be only a list of packages that want to opt-out?

@LecrisUT
Copy link
Contributor Author

I am only wondering whether we should also keep the old "bulk" script.

I'm confused. What is the old "bulk" script?

The script that is being replaced in this PR.

Copy link
Member

@lbarcziova lbarcziova left a comment

Choose a reason for hiding this comment

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

thanks! We planned to switch to default for 16th of February, this will be great in the meantime and we can then maybe reuse some parts for the opt-out and stg opt-in. So as @nforro says, no need for taking care of the orphaned packages etc. here

SCRIPTS_DIR = Path(__file__).parent
ROOT_DIR = SCRIPTS_DIR.parent
packit_service_file = ROOT_DIR / "secrets/packit/prod/packit-service.yaml.j2"
SKIP_JINJA_LINES = 32
Copy link
Member

Choose a reason for hiding this comment

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

I don't like too much hardcoding this, but since this will be short-lived, if other solution takes too much time, we can go with this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

4 participants