-
Notifications
You must be signed in to change notification settings - Fork 580
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
nit: allow arbitrary folder recursion for e2e tests. #3714
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #3714 +/- ##
==========================================
+ Coverage 78.74% 78.76% +0.02%
==========================================
Files 186 186
Lines 12816 12816
==========================================
+ Hits 10092 10095 +3
+ Misses 2291 2289 -2
+ Partials 433 432 -1 |
@@ -50,10 +50,11 @@ jobs: | |||
- name: Build e2e | |||
run: | | |||
cd e2e | |||
test_dirs="$(ls -A tests)" | |||
for td in $test_dirs | |||
find ./tests -type d | while IFS= read -r dir |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
finds all folders in tests/
and if they contain a .go
file, compiles the test binary
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So just so I understand this pipe - IFS = input field separator, and its separating on blank/space(?) reading from stdin into var dir
which we then use inside the loop
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typically it is used with some separator value if required, setting it to nothing IFS=
means it basically won't do any further splitting of the file paths (allowing e.g a path with spaces if one arises). A ref: https://unix.stackexchange.com/a/676870
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm 🚀
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice fix!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM great improvement ❤️
Description
Something I noticed in #3710. In addition to that, doesn't seem like
03-connection
tests are currently checked during thebuild
step (though their tests are executed afterwards).closes: #XXXX
Commit Message / Changelog Entry
nit: allow arbitrary folder recursion for e2e tests.
see the guidelines for commit messages. (view raw markdown for examples)
Before we can merge this PR, please make sure that all the following items have been
checked off. If any of the checklist items are not applicable, please leave them but
write a little note why.
docs/
) or specification (x/<module>/spec/
).godoc
comments.Files changed
in the Github PR explorer.Codecov Report
in the comment section below once CI passes.