Page MenuHomePhabricator

Default to the Puppet 7 PCC CI test, make it voting and eventually remove the Puppet 5 one
Open, MediumPublic

Description

Currently the Puppet compiler runs two jobs

operations-puppet-catalog-compiler-test (voting) compiles the catalogues on Puppet 5
operations-puppet-catalog-compiler-puppet7-test (non-voting) compiles the catalogues on Puppet 5

Currently we have less than 20 roles on Puppet 5 and they are pretty much all on Puppet 5 because the systems are still using Buster. There are no additional Puppet 7-specific surprises we expect, as such I think we should:

  • Make the Puppet 7 job voting now
  • Remove the Puppet 5 check when all roles are migrated (except the roles which won't be migrated (puppetmaster::backend and puppetmaster:.frontend))

Event Timeline

Change #1047024 had a related patch set uploaded (by Majavah; author: Majavah):

[integration/config@master] zuul: [operations/puppet] Make PCC voting on Puppet 7

https://gerrit.wikimedia.org/r/1047024

Change #1047025 had a related patch set uploaded (by Majavah; author: Majavah):

[integration/config@master] jjb: Default to Puppet 7 for PCC jobs

https://gerrit.wikimedia.org/r/1047025

Change #1047024 merged by jenkins-bot:

[integration/config@master] zuul: [operations/puppet] Make PCC voting on Puppet 7

https://gerrit.wikimedia.org/r/1047024

Mentioned in SAL (#wikimedia-releng) [2024-06-18T14:40:44Z] <hashar> Reloaded Zuul for https://gerrit.wikimedia.org/r/1047024 "Make PCC voting on Puppet 7" # T367399

Change #1047025 merged by jenkins-bot:

[integration/config@master] jjb: Default to Puppet 7 for PCC jobs

https://gerrit.wikimedia.org/r/1047025

Did one of these changes possinbly break PCC here?
https://integration.wikimedia.org/ci/job/operations-puppet-catalog-compiler-test/3739/console

https://gerrit.wikimedia.org/r/c/operations/puppet/+/1042898 compiled file in the past, but after a rebase and PCC re-run triggered the error above.

Did one of these changes possinbly break PCC here?
https://integration.wikimedia.org/ci/job/operations-puppet-catalog-compiler-test/3739/console

https://gerrit.wikimedia.org/r/c/operations/puppet/+/1042898 compiled file in the past, but after a rebase and PCC re-run triggered the error above.

I re-ran PCC on this change and wasn't able to reproduce the issue. Perhaps some other change fixed the issue?

jhathaway lowered the priority of this task from High to Medium.Jul 30 2024, 4:33 PM
jhathaway added a subscriber: hashar.

I briefly chatted with @hashar about this task. At present PCC does not vote. We could make it voting by moving it to test-prio. However, doing so would cause PCC to run on every patchset, which would probably be too taxing on CI. Instead he would need to setup a new pipeline that is voting but not run automatically. At present both puppet 7 & 5 run when hitting the button or commenting check experimental. @hashar also opened a task T371407 to improve the UI. In the short term the current situation is okay, so lowering the priority to medium.

From T371407:

The red chipset now has the v5 mention (v7 passes and is collapsed in the blue / INFO one):

gerrit_pcc5_failed_alone.png (61×497 px, 12 KB)

v5 and v7 are each different runs:

gerrit_split_pcc_runs.png (228×287 px, 17 KB)

I think that disambiguates what is failing.


What I am wondering is: if the host has a fact or hiera value stating it has migrated to Puppet v7, maybe we could have the Puppet v5 compiler to skip that host or report it with a new state "migrated"?

What I am wondering is: if the host has a fact or hiera value stating it has migrated to Puppet v7, maybe we could have the Puppet v5 compiler to skip that host or report it with a new state "migrated"?

I like the idea, but I think there may be too many corner cases to worry about, hopefully puppet v5 won't be with us too much longer!

Change #1075187 had a related patch set uploaded (by Muehlenhoff; author: Muehlenhoff):

[operations/puppet@production] Stop uploading puppet facts to PCC from puppetmaster1001

https://gerrit.wikimedia.org/r/1075187

Change #1215593 had a related patch set uploaded (by Majavah; author: Majavah):

[integration/config@master] Zuul: [operations/puppet] Stop running PCC with Puppet 5

https://gerrit.wikimedia.org/r/1215593

Change #1215594 had a related patch set uploaded (by Majavah; author: Majavah):

[integration/config@master] jjb: Remove Puppet 5 PCC jobs

https://gerrit.wikimedia.org/r/1215594

Change #1215593 merged by jenkins-bot:

[integration/config@master] Zuul: [operations/puppet] Stop running PCC with Puppet 5

https://gerrit.wikimedia.org/r/1215593

Mentioned in SAL (#wikimedia-releng) [2025-12-05T13:31:13Z] <James_F> Zuul: [operations/puppet] Stop running PCC with Puppet 5, for T367399

Change #1215594 merged by jenkins-bot:

[integration/config@master] jjb: Remove Puppet 5 PCC jobs

https://gerrit.wikimedia.org/r/1215594