Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: detection of changed files that might cause failure on some paths 🍭 #286

Merged
merged 2 commits into from
Aug 10, 2023

Conversation

jamacku
Copy link
Member

@jamacku jamacku commented Aug 8, 2023

By using -z option of git diff we can get the file paths without
extra spaces, newlines and quotes. Previously this caused issues like:

+ head -n1 '"test/fuzz/fuzz-unit-file/dm-back\\x2dslash.swap"'
head: cannot open '"test/fuzz/fuzz-unit-file/dm-back\\x2dslash.swap"' for reading: No such file or directory

  • Add test
  • Check if clean_array() function is still needed? - A: We don't.
  • Update CHANGELOG

src/functions.sh Fixed Show fixed Hide fixed
src/functions.sh Fixed Show fixed Hide fixed
src/functions.sh Fixed Show fixed Hide fixed
src/functions.sh Fixed Show fixed Hide fixed
@jamacku jamacku added this to the v5.0.0 milestone Aug 9, 2023
@jamacku jamacku force-pushed the debug-debug branch 3 times, most recently from cfe5553 to 3da62ee Compare August 9, 2023 15:13
@codecov
Copy link

codecov bot commented Aug 9, 2023

Codecov Report

Merging #286 (5fe0863) into main (73d3e0a) will decrease coverage by 1.16%.
The diff coverage is 77.77%.

@@            Coverage Diff             @@
##             main     #286      +/-   ##
==========================================
- Coverage   84.00%   82.84%   -1.16%     
==========================================
  Files           4        4              
  Lines         250      239      -11     
==========================================
- Hits          210      198      -12     
- Misses         40       41       +1     
Files Changed Coverage Δ
src/index.sh 79.54% <50.00%> (ø)
src/functions.sh 82.35% <85.71%> (-2.01%) ⬇️

@jamacku jamacku force-pushed the debug-debug branch 2 times, most recently from 4ab657a to e4d167c Compare August 9, 2023 15:22
@jamacku jamacku changed the title fix: debug MODE 🍭 fix: detection of changed files that might cause failiture on some paths 🍭 Aug 9, 2023
@jamacku jamacku changed the title fix: detection of changed files that might cause failiture on some paths 🍭 fix: detection of changed files that might cause failure on some paths 🍭 Aug 9, 2023
@jamacku jamacku force-pushed the debug-debug branch 3 times, most recently from 73bc819 to 8936e61 Compare August 10, 2023 07:47
By using `-z` option of `git diff` we can get the file paths without
extra spaces, newlines and quotes. Previously this caused issues like:

```sh
+ head -n1 '"test/fuzz/fuzz-unit-file/dm-back\\x2dslash.swap"'
head: cannot open '"test/fuzz/fuzz-unit-file/dm-back\\x2dslash.swap"' for reading: No such file or directory
```
Since we are using git with `-z` flag, we no longer need `clean_array()` functionality.
@jamacku jamacku marked this pull request as ready for review August 10, 2023 08:13
@jamacku jamacku merged commit 7cd5489 into redhat-plumbers-in-action:main Aug 10, 2023
7 of 9 checks passed
@jamacku jamacku deleted the debug-debug branch August 10, 2023 08:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant