Pipeline Reorganization into Schedule Files and Jobs Labeled Package or Hygiene
This ended up deviating quite a bit from #229 (closed) based on feedback and some reflection. I did a dry-run test of the pipelines for DAILY/WEEKLY to ensure jobs still ran over the triage-ops project.
Summary of changes
- Breaking the pipeline into separate files to represent the group (ie, daily, weekly, single-run, dry-run)
- Use
extends:
GitLab CI convention over<<
YAML expand operator for anchors. - Change the job stages to
package
,hygiene
,single-run
- Rename the job variables to control flow from
RUN_DAILY
andRUN_WEEKLY
toDAILY_AUTOMATION
andWEEKLY_AUTOMATION
-
bin/setup.sh
will fail if there is noTRIAGE_POLICY_FILE
or if the specifiedTRIAGE_POLICY_FILE
does not exist
Remaining actions post merge
-
Update scheduled pipelines with new variables - Kyle -
Monitor daily and weekly pipeline execution - Kyle
Relevant pipelines for changes
Failures for setup.sh changes
- No
TRIAGE_POLICY_FILE
- https://gitlab.com/gitlab-org/quality/triage-ops/-/jobs/270822126 -
TRIAGE_POLICY_FILE
does not exist - https://gitlab.com/gitlab-org/quality/triage-ops/-/jobs/270837756
Dry run scheduled pipelines
-
DAILY without UNLABELLED_TRIAGE_PACKAGE -
TRIAGE_SOURCE_TYPE=projects
,TRIAGE_SOURCE_PATH=gitlab-org/quality/triage-ops
, andDAILY_AUTOMATION=1
-
DAILY with UNLABELLED_TRIAGE_PACKAGE -
TRIAGE_SOURCE_TYPE=projects
,TRIAGE_SOURCE_PATH=gitlab-org/quality/triage-ops
,DAILY_AUTOMATION=1
, andUNLABELLED_TRIAGE_PACKAGE=1
-
WEEKLY without COMMUNITY_TRIAGE_PACKAGE -
TRIAGE_SOURCE_TYPE=projects
,TRIAGE_SOURCE_PATH=gitlab-org/quality/triage-ops
, andWEEKLY_AUTOMATION=1
-
WEEKLY with COMMUNITY_TRIAGE_PACKAGE -
TRIAGE_SOURCE_TYPE=projects
,TRIAGE_SOURCE_PATH=gitlab-org/quality/triage-ops
,WEEKLY_AUTOMATION=1
,COMMUNITY_TRIAGE_PACKAGE=1
Once this is merged in, I want to open an Issue to add in excepts
for the variables on .dry-run
and run:custom
. These would be filtered out through scheduled pipelines so it wasn't important to fix within this MR to me.
Closes #229 (closed)
Edited by Kyle Wiebers