CI Lint raises ActiveRecord::ReadOnlyRecord error
- Sentry: https://new-sentry.gitlab.net/organizations/gitlab/issues/?environment=gprd&environment=gprd-cny&project=3&query=Pipeline+is+marked+as+readonly&referrer=issue-list&statsPeriod=14d
- Kibana: https://log.gprd.gitlab.net/app/r/s/H2faD
After running a pipeline simulation with dry_run, @pipeline.skip in Chain::Skip raises an error because dry_run checks for @pipeline.readonly!
temporary* fix - in lib/gitlab/ci/pipeline/chain/skip, add this:
if skipped? && !@pipeline.readonly?
if @command.save_incompleted
* for more details
Edited by Laura Montemayor