Skip to content

Conversation

@JohnVillalovos
Copy link
Member

Add support for the new GitLab API parameters for validating existing CI/CD configurations:

  • content_ref: specify the branch, tag, or SHA to validate
  • dry_run_ref: set branch/tag context for dry run simulations

The deprecated 'ref' parameter is kept for backward compatibility.

Also update documentation with examples showing how to validate CI configuration from specific branches and with dry run simulation.

Fixes #3260

…tManager

Add support for the new GitLab API parameters for validating existing
CI/CD configurations:
- content_ref: specify the branch, tag, or SHA to validate
- dry_run_ref: set branch/tag context for dry run simulations

The deprecated 'ref' parameter is kept for backward compatibility.

Also update documentation with examples showing how to validate
CI configuration from specific branches and with dry run simulation.

Fixes #3260
@JohnVillalovos JohnVillalovos requested review from Copilot and nejch and removed request for Copilot October 17, 2025 20:09
@codecov
Copy link

codecov bot commented Oct 17, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 95.72%. Comparing base (2982f20) to head (79df4fc).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3278      +/-   ##
==========================================
+ Coverage   90.18%   95.72%   +5.53%     
==========================================
  Files          98       98              
  Lines        6052     6052              
==========================================
+ Hits         5458     5793     +335     
+ Misses        594      259     -335     
Flag Coverage Δ
api_func_v4 83.52% <100.00%> (?)
cli_func_v4 78.68% <100.00%> (?)
unit 90.18% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
gitlab/v4/objects/ci_lint.py 87.87% <100.00%> (ø)

... and 27 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@nejch
Copy link
Member

nejch commented Oct 17, 2025

Thanks @JohnVillalovos for looking into this 🙇

@nejch nejch merged commit e8d2538 into main Oct 17, 2025
19 checks passed
@nejch nejch deleted the jlvillal/3260_ci_lint branch October 17, 2025 20:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Validate existing ci yml seems to be not implemented

3 participants