Skip to content

Conversation

@tyhal
Copy link
Owner

@tyhal tyhal commented Sep 13, 2025

Split stderr and stdout in podman using dockers helper method to avoid printing control characters Fix ignore not being passed through
Fix viper config not working
Update parallel execution to use workers instead of module math Have project options duplicated from crie core instead useit

@tyhal tyhal requested a review from Copilot September 13, 2025 16:54
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR implements various fixes to improve the codebase, including improved container execution, configuration handling, and parallel execution patterns. The changes address control character handling in Podman output, fix configuration binding issues, and modernize the parallel execution model.

  • Fixes stderr/stdout separation in Podman execution using Docker's helper method
  • Improves configuration handling by fixing viper config loading and schema references
  • Refactors parallel execution to use a worker pool pattern instead of module-based math
  • Updates project structure with duplicated options from core instead of external dependencies

Reviewed Changes

Copilot reviewed 25 out of 30 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
script/completions Script formatting improvements and error handling
res/schema/proj.json Updated JSON schema with restructured configuration options
res/schema/lang.json Cleaned up language schema with renamed types
res/completion/crie.bash Auto-generated bash completion with formatting updates
pkg/linter/cli/exec_podman.go Fixed stderr/stdout handling in Podman execution
pkg/crie/linter/reporter_test.go New test file for reporter functionality
pkg/crie/linter/reporter.go New reporter implementation with worker pool pattern
pkg/crie/linter/linter.go Added GetName helper function
pkg/crie/filter_git_test.go Updated tests to use new Options structure
pkg/crie/filter_git.go Updated to use Options structure and apply ignore filters
pkg/crie/filter_dir.go Added fileListIgnore method and improved filtering
pkg/crie/execution_test.go Updated tests for new Options structure
pkg/crie/execution.go Refactored to use new reporter and Options structure
pkg/crie/config.go Restructured configuration with new Options type
img/pip/conf/yaml/.yamllint.yaml Formatting improvements in YAML lint config
crie.yml New project configuration file
cmd/crie/main.go Fixed viper configuration loading and binding
cmd/crie/config/project/config.go Updated configuration structure and schema references
cmd/crie/config/language/defaults.yml Updated schema reference
cmd/crie/config/language/config.go Updated schema reference
cmd/crie/cmd/commands.go Simplified configuration handling and updated references
README.md Minor documentation formatting fix
.github/.goreleaser.yml Removed extra blank lines
Files not reviewed (3)
  • .idea/jsonSchemas.xml: Language not supported
  • .idea/runConfigurations/crie_schema_language.xml: Language not supported
  • .idea/runConfigurations/crie_schema_project.xml: Language not supported
Comments suppressed due to low confidence (1)

script/completions:14

  • [nitpick] The redirections lack space before > which is inconsistent with common shell scripting style. Consider adding spaces: > res/completion/crie.zsh.
$CRIE_BIN completion zsh >res/completion/crie.zsh
$CRIE_BIN completion bash >res/completion/crie.bash
$CRIE_BIN completion fish >res/completion/crie.fish

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@codecov
Copy link

codecov bot commented Sep 13, 2025

Codecov Report

❌ Patch coverage is 75.65217% with 28 lines in your changes missing coverage. Please review.
✅ Project coverage is 34.45%. Comparing base (c768797) to head (ddabc49).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
pkg/crie/filter_dir.go 35.71% 9 Missing ⚠️
pkg/crie/linter/reporter.go 92.00% 4 Missing and 2 partials ⚠️
pkg/crie/linter/linter.go 0.00% 5 Missing ⚠️
pkg/linter/cli/exec_podman.go 0.00% 5 Missing ⚠️
pkg/crie/config.go 0.00% 1 Missing and 1 partial ⚠️
pkg/crie/execution.go 88.88% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #764      +/-   ##
==========================================
+ Coverage   28.65%   34.45%   +5.80%     
==========================================
  Files          27       26       -1     
  Lines        1047     1071      +24     
==========================================
+ Hits          300      369      +69     
+ Misses        699      652      -47     
- Partials       48       50       +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@mergify
Copy link
Contributor

mergify bot commented Sep 13, 2025

🧪 CI Insights

Here's what we observed from your CI run for ddabc49.

🟢 All jobs passed!

But CI Insights is watching 👀

Split stderr and stdout in podman using dockers helper method to avoid printing control characters
Fix ignore not being passed through
Fix viper config not working
Update parallel execution to use workers instead of module math
Have project options duplicated from crie core instead useit
@sonarqubecloud
Copy link

@tyhal tyhal merged commit 2a27e21 into main Sep 13, 2025
6 checks passed
@tyhal tyhal deleted the bug-fixes branch October 6, 2025 22:50
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