gitlab: install: workflow rules installed after existing "when: never" rule
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 73/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- gitlab
- Domain
- ci-cd
Research direction
Find the code that generates the GitLab workflow rules during fullsend install and read the relevant tests for existing .gitlab-ci.yml workflows. Check how generated rules are ordered relative to an existing when: never rule; done means the installed workflow preserves the existing rules and allows the intended generated pipelines to run.
Written by the indexing model from the issue text.
Description
I am installing fullsend in a repository that has an existing workflow setup of
workflow:
rules:
# Run on merge request pipelines
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
# Run automatically on statistic pipelines
- if: '$STATISTIC_PIPELINE == "true"'
# Don't run in other cases
- when: never
fullsend install proposed a MR with
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 0d4336590210cbc12ecdaad9a1494e457f14eab1..c6a36b4383401abe0e60ec1508dff2164ea8e7bf 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -16,12 +92,20 @@ default:
workflow:
rules:
+ - if: $CI_DEBUG_TRACE =~ /^(1|t|true)$/i
+ when: never
# Run on merge request pipelines
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
# Run automatically on statistic pipelines
- if: '$STATISTIC_PIPELINE == "true"'
# Don't run in other cases
- when: never
+ - if: $CI_PIPELINE_SOURCE == "schedule" && $CI_COMMIT_REF_PROTECTED == "true"
+ - if: $CI_PIPELINE_SOURCE == "api" && $CI_COMMIT_REF_PROTECTED == "true" && $STAGE
+ - if: $CI_PIPELINE_SOURCE == "pipeline" && $CI_COMMIT_REF_PROTECTED == "true" && $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH && $STAGE
+ - if: $CI_PIPELINE_SOURCE == "trigger" && $CI_COMMIT_REF_PROTECTED == "true" && $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH
+ auto_cancel:
+ on_new_commit: none
setup:
extends: .kqe_setup
I don't think this is going to work; gitlab takes these in order so it will stop at the when: never. Probably the solution is to delete this line, although I suppose it could live at the end as well.
- Dominant language
- Go
- Stars
- 146
- Forks
- 112
- Avg merge
- 1d 16h
- Merged PRs (30d)
- 358
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from fullsend-ai/fullsend
-
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
fullsend-ai/fullsend#9371 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
fullsend-ai/fullsend#9278 ·
Maintainers usually reply within 1 day
-
question
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
fullsend-ai/fullsend#9251 · 4 comments ·
Maintainers usually reply within 1 day
-
blocked
Difficulty 1/5 Under an hour Newbie friendliness 88/100
fullsend-ai/fullsend#9249 · 2 comments · 1 reaction ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
fullsend-ai/fullsend#9237 ·
Maintainers usually reply within 1 day
All issues in fullsend-ai/fullsend
Similar issues
-
0.kind: bug
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Judgment-Pack/judgment-pack-runtime#390 ·
Maintainers usually reply within 1 day
-
triage/needs-triage
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
cozystack/cozystack#5300 · 1 reaction ·
Maintainers usually reply within 2 days
-
bug go
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
teradata-labs/loom#665 ·
Maintainers usually reply within 1 day
-
Improve DB UIOpenenhancement ui/ux
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
jbigler/railswitch#222 ·
Maintainers usually reply within 1 day