-
Notifications
You must be signed in to change notification settings - Fork 11
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: parsing of tmt context input #137
Conversation
[test] |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #137 +/- ##
=======================================
Coverage 99.28% 99.29%
=======================================
Files 8 8
Lines 563 566 +3
Branches 61 60 -1
=======================================
+ Hits 559 562 +3
Misses 4 4 ☔ View full report in Codecov by Sentry. |
@zmiklank Thanks for fixing this issue. When will this fix be landed in |
@henrywang We want to have a few days (a week) between landing new fix or feature and release. Meanwhile we test it on our repos. |
@henrywang Hello, this fix has just landed in v2. |
@zmiklank Thank you! I'll give new v2 a try. |
@zmiklank Hi! The context issue fixed. But I found the secret can't be passed to tmt. virt-s1/bootc-workflow-test#220 |
@henrywang thanks for confirmation. Do you mean these secrets? |
Right. |
Interesting. I can see in pipeline.log in your test run, that secrets were passed in the request: Can you maybe provide more information about this issue? |
The error log:
Those logs come from https://github.com/virt-s1/bootc-workflow-test/blob/main/tmt/tests/test.sh#L8. |
It seems that decoding base64 ends with success even if its input is zero length string. Seems more like the binary string you want to pass to the base64 is invalid, not that the variable is empty. If I understand your script correctly, then the base64 command would not be executed at all, if the "secrets" variables were empty. What is needed here is a minimal reproducer - something that does not incorporate various other programs that could fail. We have something like that here: https://github.com/sclorg/testing-farm-as-github-action/blob/main/.github/workflows/secrets_test.yml, but your issue is not reproducible with it. |
It's due to issue sclorg/testing-farm-as-github-action#137 (comment) Signed-off-by: Xiaofeng Wang <henrywangxf@me.com>
I rollback testing farm action to v1. Same PR test passed now virt-s1/bootc-workflow-test#220. Looks like only some long string secrets affected. |
Fixes: