feat(tia): add GitLab CI baseline support - #1841
Open
calebdw wants to merge 1 commit into
Open
Conversation
Member
|
hi friend, did you tested this on gitlab itself? |
calebdw
marked this pull request as draft
August 11, 2026 02:52
Contributor
Author
|
Not, yet---I started to but got pulled away on other fixes. I'll let you know once I confirm this works |
calebdw
force-pushed
the
calebdw/push-nnyqzozmkzwk
branch
3 times, most recently
from
August 17, 2026 22:05
dbd6f50 to
cfa90b9
Compare
Extract BaselineSync into a provider architecture with an abstract BaseRemote class and concrete GitHubRemote/GitLabRemote implementations. GitLab support uses the glab CLI to fetch TIA baselines from CI pipelines. The GitLabRemote queries the GitLab API for the latest successful job matching the configured name on the default branch, then downloads artifacts via `glab job artifact`. Self-hosted GitLab instances are supported automatically: any non-GitHub remote is detected as GitLab when the glab CLI is installed, with authentication validated at fetch time. Key changes: - BaseRemote abstract class holds shared logic: CLI existence/auth checks, error classification, git remote URL parsing, and default branch resolution - GitHubRemote extracts existing gh CLI logic unchanged - GitLabRemote adds glab CLI support with default job name `tia-baseline`, configurable via `->baselined(job: "name")` - BaselineSync becomes a provider-agnostic orchestrator that iterates registered remotes to detect the matching CI provider - Configuration::baselined() accepts optional `job` parameter for GitLab job name customization - GitLab job query filters by both job name and default branch ref to ensure cache key matches downloaded artifact
calebdw
force-pushed
the
calebdw/push-nnyqzozmkzwk
branch
from
August 17, 2026 22:12
cfa90b9 to
f68d815
Compare
Contributor
Author
|
@nunomaduro, I've tested this out in GitLab and it works! (even in a private self-hosted instance) You can test it yourself with this project: https://gitlab.com/calebdw/sql-entities Note that this really depends on #1844 so that should be merged as well (I had to do some finagling in the |
calebdw
marked this pull request as ready for review
August 17, 2026 22:39
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.
What:
Description:
Hello!
This adds GitLab support to the tia engine, not just
gitlab.combut also self-hosted instances (as long as theglabbinary is authenticated) as many companies use the self-hosted option for their codebases.Thanks!