Repository navigation
fix(ci): disable CI for infrastructure GitLab mirrors - #1002
Merged
Merged
Conversation
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Description
GitLab copies of LizardByte-infrastructure repositories can contain upstream
.gitlab-ci.ymlfiles. Mirror pushes were starting pipelines and consuming shared runner compute minutes.Infrastructure targets now carry a CI policy that disables CI/CD (
builds_access_level: disabled), instance runners, group runners, and Auto DevOps. Existing verified mirrors are updated during preparation, and updates already applied are skipped. New projects receive the settings in their creation payload before server-side imports can run. Delivery verifies the policy again before pushing, and fails if GitLab rejects or ignores any setting.The policy applies only to GitLab copies of repositories owned by LizardByte-infrastructure. Git history and mirrored source files are retained. Existing running jobs are not canceled by this change and must be canceled separately.
Screenshot
Issues Fixed or Closed
Roadmap Issues
Testing
node --test: 229 tests passed, including 34 focused mirror/request tests. New regression coverage checks organization selection, updates to existing mirrors, combined private visibility and CI settings, rejected or partially applied settings, redundant-update avoidance, preservation of other orgs' settings, and CI enforcement before project transfers.The actual shell jq expressions passed four creation/import payload cases and seven verification cases. ShellCheck 0.11.0, Bash syntax validation, and
git diff --checkpassed.GitLab mutations are mocked. Live GitLab settings were not changed while preparing this PR; the policy is applied by the next mirror run after merge. SonarCloud Code Analysis and GitHub's SonarCloud code-scanning check passed on this PR head. The remaining GitHub Actions checks are queued.
Type of Change
Checklist
AI Usage
See our AI usage policy.