Skip to content

Commit

Permalink
fix(mcl/ci_matrix): Add warnings to uselessWarnings
Browse files Browse the repository at this point in the history
  • Loading branch information
monyarm committed Aug 29, 2024
1 parent 3970182 commit d5a95d6
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions packages/mcl/src/src/mcl/commands/ci_matrix.d
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,13 @@ static immutable string[] uselessWarnings =
"Please note that certain features, such as the test framework, may not function properly with the legacy table type.",
"If you encounter errors similar to:",
"error: The option `disko.devices.disk.disk1.content.partitions",
"this is likely due to the use of the legacy table type."
"this is likely due to the use of the legacy table type.",
"warning: system.stateVersion is not set, defaulting to",
"warning: Runner registration tokens have been deprecated and disabled by default in GitLab >= 17.0.",
"Consider migrating to runner authentication tokens by setting `services.gitlab-runner.services.codetracer.authenticationTokenConfigFile`.",
"https://docs.gitlab.com/17.0/ee/ci/runners/new_creation_workflow.html"
"for a migration you can follow the guide at https://github.com/nix-community/disko/blob/master/docs/table-to-gpt.md"

];

Package packageFromNixEvalJobsJson(
Expand Down Expand Up @@ -371,7 +377,7 @@ Package[] nixEvalJobs(string flakeAttrPrefix, string cachixUrl, bool doCheck = t
}
foreach (line; pipes.stderr.byLine)
{
if (uselessWarnings.map!((warning) => line.indexOf(warning) != -1).any)
if (line.trim == "" || uselessWarnings.map!((warning) => line.indexOf(warning) != -1).any)
continue;

logError(line.idup);
Expand Down

0 comments on commit d5a95d6

Please sign in to comment.