Regression fixes and prepare 0.2.0#121
Merged
Merged
Conversation
Since our on_event was skipping the inner filter, the disabled bits would stay set for the next event, which coincidentally could end up being an event logged with `gitlab.output=true` directly. This seems to not have come up in testing because the events that got accidentally disabled were TRACE events that we didn't really care about anyway. The tests are also modified to only enable TRACE-level logging when OBO_TEST_TRACE is set, that way the tests are doing logging with a setup more similar to the runner proper.
Since the CLI trace logs end up in the same place as the output logs, we need a small hack to differentiate them in one test, but it's only enabled when test tracing is enabled and thus shouldn't cause problems elsewhere.
3ee5231 to
6f6123e
Compare
6f6123e to
47aae60
Compare
Otherwise, generated pipelines might end up with bad `artifacts` items without it being caught during testing.
This contains fixes for logs being blank in some GitLab versions: collabora/gitlab-runner-rs#125 https://docs.gitlab.com/releases/patches/patch-release-gitlab-19-0-2-released/ as well as improved support for artifact paths that now matches GitLab's usual semantics: collabora/gitlab-runner-rs#126 Fixes #119.
This contains a fix for infinite looping when downloading the logs when reqwest uses HTTP/2: collabora/open-build-service-rs#64
This makes it easier to bump the version for the CLI + runner and reduces duplication.
47aae60 to
fc8d23a
Compare
fc8d23a to
f83eafe
Compare
Bump chart version and appVersion all to 0.2.0. Comment image.tag in values so it will default to the appVersion (which should match) The chart version isn't necesarilly expected to be in sync with the App version, however as it was seemingly never even bumped (and should be bumped on app changes), just sync them all up and we can see how it goes
f83eafe to
0a548d6
Compare
sjoerdsimons
approved these changes
Jun 24, 2026
There was a problem hiding this comment.
Pull request overview
This PR prepares the 0.2.0 release by upgrading runner-related dependencies for compatibility with newer GitLab versions and by tightening test infrastructure to better catch log/artifact regressions.
Changes:
- Upgrade dependencies (
gitlab-runner/gitlab-runner-mockto0.3.2,open-build-service-apito0.1.1) and align crate metadata via[workspace.package]. - Fix/regression-hardening in logging forwarding (
GitLabForwarder) and expand tests to validate artifact path lists via a newRunBuilder::saves(...)hook. - Bump Helm chart/app versions toward
0.2.0and adjust image tag behavior to default to chartappVersion.
Reviewed changes
Copilot reviewed 12 out of 13 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| obs-gitlab-runner/src/logging.rs | Adjusts event forwarding order to preserve Filtered state and bypass filters for special output events. |
| obs-gitlab-runner/src/handler.rs | Updates GitLab-runner-backed tests to track saved artifact patterns and improves logging filter configuration in tests. |
| obs-gitlab-runner/chart/values.yaml | Stops hardcoding the image tag (defaults to chart appVersion). |
| obs-gitlab-runner/chart/Chart.yaml | Bumps chart version and appVersion for the 0.2.0 release. |
| obs-gitlab-runner/Cargo.toml | Moves package metadata to workspace and bumps gitlab-runner deps to 0.3.2. |
| obo-tests/src/lib.rs | Adds should_enable_trace_logging() and introduces RunBuilder::saves(...) so tests can validate artifact path lists. |
| obo-tests/Cargo.toml | Uses workspace edition/license metadata. |
| obo-test-support/Cargo.toml | Uses workspace edition/license metadata. |
| obo-core/Cargo.toml | Uses workspace edition/license metadata. |
| obo-cli/tests/test_cli.rs | Implements saves(...) no-op for CLI tests and adds opt-in trace logging env configuration. |
| obo-cli/Cargo.toml | Moves package metadata to workspace. |
| Cargo.toml | Introduces [workspace.package] and bumps open-build-service-api to 0.1.1. |
| Cargo.lock | Updates lockfile for dependency/version bumps. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
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.
Contains the gitlab-runner upgrade to work with newer GitLab, plus three regression fixes for the runner:
generate-pipelineThe latter two should now be caught via the test suite