Skip to content

Fix three failing CI jobs: format, Fedora hook, ASAN#1

Merged
jwinarske merged 4 commits intomainfrom
copilot/fix-failing-ci-jobs
Mar 30, 2026
Merged

Fix three failing CI jobs: format, Fedora hook, ASAN#1
jwinarske merged 4 commits intomainfrom
copilot/fix-failing-ci-jobs

Conversation

Copy link
Copy Markdown

Copilot AI commented Mar 29, 2026

  • Fix format check — formatted files and added dart pub get before dart format in CI
  • Fix coverage lcov glob expansion — replaced --exclude "/usr/*" with --no-external
  • Fix coverage lcov unused-pattern error — removed unused */test/* exclude (only the library target has coverage, not the test executable) and added --ignore-errors unused as belt-and-suspenders

💬 Send tasks to Copilot coding agent from Slack and Teams to turn conversations into code. Copilot posts an update in your thread when it's finished.

- Format 9 Dart source files to pass dart format --set-exit-if-changed
- hook/build.dart: replace 'which' with 'sh -c command -v' to work on
  Fedora where 'which' is not installed by default
- .github/workflows/ci.yml: add libclang-rt-19-dev to ASAN job to
  provide missing ASAN runtime libraries

Agent-Logs-Url: https://github.com/meta-flutter/flatpak_dart/sessions/10fd620c-8043-4937-943d-3a4865baf118

Co-authored-by: jwinarske <12262875+jwinarske@users.noreply.github.com>
Copilot AI and others added 2 commits March 29, 2026 22:39
Agent-Logs-Url: https://github.com/meta-flutter/flatpak_dart/sessions/a92b7b4b-2598-44ba-af6e-92aadc1dc483

Co-authored-by: jwinarske <12262875+jwinarske@users.noreply.github.com>
…sion

- ci.yml: add `dart pub get` before `dart format --set-exit-if-changed`
  so CI resolves the package to language version 3.4 and uses the
  old-style formatter, consistent with committed files.

- Coverage.cmake: replace --exclude "/usr/*" (shell-expanded in
  Makefile rules by the Makefile generator, causing lcov 2.0 to reject
  the expanded paths as extra parameters) with --no-external
  --base-directory, the standard lcov way to exclude system headers.

Agent-Logs-Url: https://github.com/meta-flutter/flatpak_dart/sessions/a92b7b4b-2598-44ba-af6e-92aadc1dc483

Co-authored-by: jwinarske <12262875+jwinarske@users.noreply.github.com>
Copilot AI requested a review from jwinarske March 29, 2026 22:42
@jwinarske jwinarske marked this pull request as ready for review March 30, 2026 01:02
The Coverage (PR) job failed with:
  geninfo: ERROR: 'exclude' pattern '*/test/*' is unused.

Only the library target (flatpak_nc) has coverage instrumentation,
not the test executable, so test source files produce no .gcda files
and the '*/test/*' exclude pattern never matches anything. lcov 2.0
treats unused patterns as errors.

Fix: remove the dead '*/test/*' exclude, and add --ignore-errors unused
so the remaining patterns (*/generated/*, */dart_api_dl*) can't cause
the same error in future if the build changes.

Agent-Logs-Url: https://github.com/meta-flutter/flatpak_dart/sessions/2df3c636-5e9c-445c-abcd-d75d04f8013d

Co-authored-by: jwinarske <12262875+jwinarske@users.noreply.github.com>
@github-actions
Copy link
Copy Markdown

Coverage after merging copilot/fix-failing-ci-jobs into main will be

2.71%

Coverage Report for Changed Files
FileStmtsBranchesFuncsLinesUncovered Lines

@jwinarske jwinarske merged commit 0dc9db4 into main Mar 30, 2026
7 checks passed
@jwinarske jwinarske deleted the copilot/fix-failing-ci-jobs branch March 30, 2026 01:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants