Skip to content

refactor: split package build and configuration stages - #198

Merged
ReenigneArcher merged 2 commits into
masterfrom
codex/sonar-s3776
Nov 28, 2026
Merged

ReenigneArcher merged 2 commits into
masterfrom
codex/sonar-s3776

Conversation

@ReenigneArcher

@ReenigneArcher ReenigneArcher commented Nov 28, 2026 •

Copy link
Copy Markdown
Member

Description

Extract dependency preparation, package publishing, and failed-build reporting from the build command. Extract the per-container scan from print-config so the command can focus on assembling and writing the manifest.

Add CLI integration tests for dependency-install warnings, package publication and cleanup, subprocess failures, and persistence of failed-build records. Check that print-config keeps valid members while reporting both missing containers and broken entries.

Screenshot

Issues Fixed or Closed

Roadmap Issues

Testing

  • git diff --check, cargo fmt --all -- --check, and cargo clippy --locked --all-targets -- -D warnings passed.
  • All 72 tests passed in WSL. The build and patch-makepkg integration tests ran with the required Arch paths mounted in an isolated namespace.
  • Local LLVM line coverage across the two changed source files rose from 35/202 to 169/202 changed executable lines after adding the six CLI tests.

Type of Change

  • feat: New feature (non-breaking change which adds functionality)
  • fix: Bug fix (non-breaking change which fixes an issue)
  • docs: Documentation only changes
  • style: Changes that do not affect the meaning of the code (white-space, formatting, missing semicolons, etc.)
  • refactor: Code change that neither fixes a bug nor adds a feature
  • perf: Code change that improves performance
  • test: Adding missing tests or correcting existing tests
  • build: Changes that affect the build system or external dependencies
  • ci: Changes to CI configuration files and scripts
  • chore: Other changes that don't modify src or test files
  • revert: Reverts a previous commit
  • BREAKING CHANGE: Introduces a breaking change (can be combined with any type above)

Checklist

  • Code follows the style guidelines of this project
  • Code has been self-reviewed
  • Code has been commented, particularly in hard-to-understand areas
  • Code docstring/documentation-blocks for new or existing methods/components have been added or updated
  • Tests have been added or updated for new or modified functionality, including regression tests for bug fixes

AI Usage

See our AI usage policy.

  • AI tools were used while preparing this PR

@codecov

codecov Bot commented Nov 28, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 79.45205% with 30 lines in your changes missing coverage. Please review.
✅ Project coverage is 60.21%. Comparing base (19b3b81) to head (e2e9efc).
✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
src/cmd/build.rs 76.31% 27 Missing ⚠️
src/cmd/print_config.rs 90.62% 3 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff             @@
##           master     #198       +/-   ##
===========================================
+ Coverage   40.34%   60.21%   +19.87%     
===========================================
  Files          55       55               
  Lines        1294     1317       +23     
===========================================
+ Hits          522      793      +271     
+ Misses        772      524      -248     
Files with missing lines Coverage Δ
src/cmd/print_config.rs 91.07% <90.62%> (+16.07%) ⬆️
src/cmd/build.rs 74.88% <76.31%> (+74.88%) ⬆️

... and 8 files with indirect coverage changes


Continue to review full report in Codecov by Harness.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 19b3b81...e2e9efc. Read the comment docs.

@sonarqubecloud

Copy link
Copy Markdown

@ReenigneArcher
ReenigneArcher merged commit ef4e183 into master Nov 28, 2026
15 checks passed
@ReenigneArcher
ReenigneArcher deleted the codex/sonar-s3776 branch November 28, 2026 06:08
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.

1 participant