Closed sm43 closed 3 months ago
Attention: Patch coverage is 93.97590%
with 10 lines
in your changes are missing coverage. Please review.
Project coverage is 64.62%. Comparing base (
3274759
) to head (9d45d01
).:exclamation: Current head 9d45d01 differs from pull request most recent head 78fd105. Consider uploading reports for the commit 78fd105 to get more accurate results
Files | Patch % | Lines |
---|---|---|
pkg/configutil/config.go | 85.07% | 8 Missing and 2 partials :warning: |
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
looks good by me, thanks!
@sm43 Hi. We just paid attention the error-detection-simple-regexp regex "^(?P<filename>[^:]*):(?P<line>[0-9]+):(?P<column>[0-9]+):([ ]*)?(?P<error>.*)"
slightly changed from the value we have here https://github.com/openshift-pipelines/pipelines-as-code/blob/main/config/302-pac-configmap.yaml#L91
Was that change intentional? If yes, what is its purpose?
intentional
@enarha I think I kept it the same to what was in config.go earlier https://github.com/sm43/pipelines-as-code/blob/78fd10528890116b21d6d5caed50a56ad7096539/pkg/params/settings/config.go#L58
although I am not sure why it has been a little different than in configmap
adds a package to replace code in settings for validation and defaults with a generic func, using json tag for defaulting. and for figuring out which field it is from configmap.
Changes
Submitter Checklist
[x] ๐ Please ensure your commit message is clear and informative. For guidance on crafting effective commit messages, refer to the How to write a git commit message guide. We prefer the commit message to be included in the PR body itself rather than a link to an external website (ie: Jira ticket).
[x] โฝ Before submitting a PR, run make test lint to avoid unnecessary CI processing. For an even more efficient workflow, consider installing pre-commit and running pre-commit install in the root of this repository.
[x] โจ We use linters to maintain clean and consistent code. Please ensure you've run make lint before submitting a PR. Some linters offer a --fix mode, which can be executed with the command make fix-linters (ensure markdownlint and golangci-lint tools are installed first).
[x] ๐ If you're introducing a user-facing feature or changing existing behavior, please ensure it's properly documented.
[x] ๐งช While 100% coverage isn't a requirement, we encourage unit tests for any code changes where possible.
[x] ๐ If feasible, please check if an end-to-end test can be added. See README for more details.
[x] ๐ If there's any flakiness in the CI tests, don't necessarily ignore it. It's better to address the issue before merging, or provide a valid reason to bypass it if fixing isn't possible (e.g., token rate limitations).