Loading
Commits on Source 12
-
Richard Chong authored
The exporter sent absolute CI build paths such as /builds/gitlab-org/gitlab/app/assets/javascripts/tabs/constants.js, which violate the table's valid_source_file_format constraint. The constraint is evaluated per insert, so ClickHouse rejected the whole 100,000-row batch rather than the offending row, and the client commits its clean batches before raising. A run therefore wrote a partial export with nothing marking the gap. Strip the CI project directory prefix and any leading ./ so the value is repo-relative. The constraint rejects both a leading / and a leading ./, so anything still matching either after normalization is skipped, as is a path that normalizes to nothing. Report the skipped paths once per run rather than once per record, and raise when none survive. A CI_PROJECT_DIR that does not match the artifact drops every mapping, which would otherwise bury the trace in one line per mapping and then finish green against an empty insert. Changelog: fixed
-
Tiffany Rea authored
pipeline-common 13.0.0 removed the only invocation of exe/report-results (gitlab-org/quality/pipeline-common!561), and gitlab-org/gitlab moved to 13.0.0 in gitlab-org/gitlab!252860. The test-case mechanism it fed is retired, so nothing calls it. ResultsInTestCases, ResultsInIssues and the ResultsReporter concern had no other consumers. GroupResultsInIssues is a different class and stays. Changelog: removed Co-Authored-By:
Claude Opus 5 (1M context) <noreply@anthropic.com>
-
Richard Chong authored
Remove the report-results test-case reporter See merge request !493 Merged-by:
Richard Chong <rchong@gitlab.com> Approved-by:
Richard Chong <rchong@gitlab.com> Co-authored-by:
treagitlab <trea@gitlab.com> -
David Dieulivol authored
Normalize source paths before inserting test file mappings See merge request !497 Merged-by:
David Dieulivol <ddieulivol@gitlab.com> Approved-by:
David Dieulivol <ddieulivol@gitlab.com> Reviewed-by:
GitLab Duo <gitlab-duo@gitlab.com> Co-authored-by:
Richard Chong <rchong@gitlab.com>
-
Richard Chong authored
group, stage and section describe the feature category, not the test-to-source mapping, and they change whenever stages.yml is reorganised. The table's sort key includes section and stage, so a re-owned mapping is written as a new row and the old one survives until the TTL expires it. Emit only test_file, source_file and category, and compare only category when deciding what needs writing. Readers resolve the owner by joining shared.category_owners through category. One spec fixture detected a section change, which this commit stops comparing, so it was retargeted to a category change. Another carried no category at all, leaving the only surviving column unexercised on the write path. Changelog: changed
-
Richard Chong authored
Stop writing ownership columns to test_file_mappings See merge request !494 Merged-by:
Richard Chong <rchong@gitlab.com>
-
Vishal Patel authored
Renovate generates commits with a `Changelog: dependency` trailer, which fails the danger-review check because `dependency` is not a valid category. Add it so dependency-update MRs pass changelog validation. Changelog: other
-
Richard Chong authored
Mappings come from the Crystalball map, which lists every test file, while categories come from the rspec reports of whichever pipeline runs the export. A test that did not run in that pipeline resolves to a blank category, and the duplicate filter counted that blank as a change worth writing, so it overwrote a known value. A blank now only applies to mappings with no stored category. When the read-back itself fails the filter can no longer tell those apart, so it inserts the records that carry a category and holds the blanks back rather than treating an unreadable table as an empty one. Suppressed blanks and held-back records are logged, since an incomplete set of reports is otherwise invisible. The two aggregate counts no longer call everything they skip already stored, because held-back records were never compared. Changelog: fixed
-
Richard Chong authored
Keep a blank category from erasing a stored one See merge request !498 Merged-by:
Richard Chong <rchong@gitlab.com> Approved-by:
Tiffany Rea <trea@gitlab.com>
Reviewed-by: GitLab Duo <gitlab-duo@gitlab.com>
-
Richard Chong authored
Add dependency changelog category See merge request !502 Merged-by:
Richard Chong <rchong@gitlab.com> Approved-by:
Richard Chong <rchong@gitlab.com> Co-authored-by:
Vishal Patel <vpatel@gitlab.com>
-
Richard Chong authored
Releases the four changes merged since 3.21.4: the report-results test-case reporter removal, the ownership columns dropped from test_file_mappings writes, source path normalization on insert, and the blank-category guard on the mappings read-back. Minor rather than patch: public API was removed, so consumers pinning ~> 3.21 should opt in deliberately. exe/report-results, ResultsInTestCases, ResultsInIssues and the ResultsReporter concern are all gone, and nothing has called them since pipeline-common 13.0.0. Changelog: changed
-
Richard Chong authored
Release 3.22.0 See merge request !503 Merged-by:
Richard Chong <rchong@gitlab.com>