Skip to content

Commit d5a95d6

Browse files
committed
fix(mcl/ci_matrix): Add warnings to uselessWarnings
1 parent 3970182 commit d5a95d6

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

packages/mcl/src/src/mcl/commands/ci_matrix.d

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,13 @@ static immutable string[] uselessWarnings =
238238
"Please note that certain features, such as the test framework, may not function properly with the legacy table type.",
239239
"If you encounter errors similar to:",
240240
"error: The option `disko.devices.disk.disk1.content.partitions",
241-
"this is likely due to the use of the legacy table type."
241+
"this is likely due to the use of the legacy table type.",
242+
"warning: system.stateVersion is not set, defaulting to",
243+
"warning: Runner registration tokens have been deprecated and disabled by default in GitLab >= 17.0.",
244+
"Consider migrating to runner authentication tokens by setting `services.gitlab-runner.services.codetracer.authenticationTokenConfigFile`.",
245+
"https://docs.gitlab.com/17.0/ee/ci/runners/new_creation_workflow.html"
246+
"for a migration you can follow the guide at https://github.com/nix-community/disko/blob/master/docs/table-to-gpt.md"
247+
242248
];
243249

244250
Package packageFromNixEvalJobsJson(
@@ -371,7 +377,7 @@ Package[] nixEvalJobs(string flakeAttrPrefix, string cachixUrl, bool doCheck = t
371377
}
372378
foreach (line; pipes.stderr.byLine)
373379
{
374-
if (uselessWarnings.map!((warning) => line.indexOf(warning) != -1).any)
380+
if (line.trim == "" || uselessWarnings.map!((warning) => line.indexOf(warning) != -1).any)
375381
continue;
376382

377383
logError(line.idup);

0 commit comments

Comments
 (0)