- Issue created by @catch
- πΊπΈUnited States phenaproxima Massachusetts
To do this, let's alter
.gitlab-ci,yml
such that there are two environment variables that make up the "canary" configuration:CANARY_CORE_RECOMMENDED
: The constraint used fordrupal/core-recommended
.CANARY_PREFER_STABLE
: The value of Composer'sprefer-stable
flag:true
orfalse
.
Then we can configure multiple overnight canary jobs that use different values for these two variables.
- Merge request !470Add CANARY_CORE_RECOMMENDED and CANARY_PREFER_STABLE variables β (Merged) created by phenaproxima
- πΊπΈUnited States thejimbirch Cape Cod, Massachusetts
Asked Catch to review in Drupal Slack since I can't assign it to him.
- π¬π§United Kingdom catch
This looks fine in principle, but I can't tell if it'll work in practice from the YAML changes.
Since it will only affect the canary job, seems worth merging and setting up the pipelines and tweaking if it needs more. There is the same chicken and egg problem with core pipelines where it's awkward to test branch/scheduled job changes except for committing them, it's possible to do on a full fork of the project but that takes a fair bit of time to set up.
- πΊπΈUnited States thejimbirch Cape Cod, Massachusetts
Moving to RTBC based on comments in #6, thanks!
- πΊπΈUnited States phenaproxima Massachusetts
I guess we'll see what happens!
-
phenaproxima β
committed c308ec46 on 1.x
Issue #3501282 by phenaproxima, catch: Add core next minor canary job(s)
-
phenaproxima β
committed c308ec46 on 1.x
- πΊπΈUnited States phenaproxima Massachusetts
This seems to have worked. The most recent overnight canary run installed Drupal 11.x-dev and most dependencies in non-stable dev branches: https://git.drupalcode.org/project/drupal_cms/-/jobs/4174541#L89
- π¬π§United Kingdom catch
Is the next step to set up a couple more canary jobs on https://git.drupalcode.org/project/drupal_cms/-/pipeline_schedules ? I think I came up with two more in the issue summary, although I'm not 100% certain those are the only additional variations that exist.
- πΊπΈUnited States phenaproxima Massachusetts
I agree. Here's what we have set up:
Canary: dev core, stable contrib
core-recommended 11.x-dev@dev
prefer-stable is trueCanary: stable core, dev contrib
core-recommended: ^11.1@stable
prefer-stable is falseCanary: dev core and contrib
prefer-stable is falseThey each run an hour apart. Hopefully they do what we want!
- πΊπΈUnited States phenaproxima Massachusetts
I kicked off a run of these canary pipelines and they seem to be doing exactly what I hoped for!!
Stable core, dev contrib: https://git.drupalcode.org/project/drupal_cms/-/jobs/4178476
Dev core, stable contrib: https://git.drupalcode.org/project/drupal_cms/-/jobs/4178447 Automatically closed - issue fixed for 2 weeks with no activity.