-
Notifications
You must be signed in to change notification settings - Fork 140
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
sast-unicode-check: add support for Trusted Artifacts #1524
Conversation
/ok-to-test |
@kdudka The script doesn't take care of the OWNERS files though. Still need to add manually. |
9e60dab
to
838778b
Compare
@rhyw Added. Thanks for the notice! |
Before this change, the `sast-unicode-check` was failing with the default parameters because the script was passing the whole list of arguments as a single argument: ``` + mapfile -t fuc_args + LANG=en_US.utf8 + ./find-unicode-control/find_unicode_control.py '-p bidi -v -d -t' /var/workdir/source + FUC_EXIT_CODE=2 + [[ 2 -ne 0 ]] + [[ 2 -ne 1 ]] + echo 'Failed to run find-unicode-control command' Failed to run find-unicode-control command + cat raw_sast_unicode_check_out.log usage: find_unicode_control.py [-h] [-p {all,bidi}] [-v] [-d] [-t] [-c CONFIG] path [path ...] find_unicode_control.py: error: argument -p/--nonprint: invalid choice: ' bidi -v -d -t' (choose from 'all', 'bidi') + note='Task sast-unicode-check-oci-ta failed: For details, check Tekton task log.' ++ make_result_json -r ERROR -t 'Task sast-unicode-check-oci-ta failed: For details, check Tekton task log.' ``` Fixes: konflux-ci#1401 Related: konflux-ci#1524
Create the `-oci-ta` variant of the `sast-unicode-check` task. Related: konflux-ci#1401 Resolves: https://issues.redhat.com/browse/OSH-764 Closes: konflux-ci#1524
838778b
to
31de817
Compare
I have tested this via https://github.com/kdudka/konflux-test-ec-cli/pull/1/checks?check_run_id=31993329561. |
Before this change, the `sast-unicode-check` was failing with the default parameters because the script was passing the whole list of arguments as a single argument: ``` + mapfile -t fuc_args + LANG=en_US.utf8 + ./find-unicode-control/find_unicode_control.py '-p bidi -v -d -t' /var/workdir/source + FUC_EXIT_CODE=2 + [[ 2 -ne 0 ]] + [[ 2 -ne 1 ]] + echo 'Failed to run find-unicode-control command' Failed to run find-unicode-control command + cat raw_sast_unicode_check_out.log usage: find_unicode_control.py [-h] [-p {all,bidi}] [-v] [-d] [-t] [-c CONFIG] path [path ...] find_unicode_control.py: error: argument -p/--nonprint: invalid choice: ' bidi -v -d -t' (choose from 'all', 'bidi') + note='Task sast-unicode-check-oci-ta failed: For details, check Tekton task log.' ++ make_result_json -r ERROR -t 'Task sast-unicode-check-oci-ta failed: For details, check Tekton task log.' ``` Fixes: konflux-ci#1401 Related: konflux-ci#1524
31de817
to
00a6289
Compare
Create the `-oci-ta` variant of the `sast-unicode-check` task. Related: konflux-ci#1401 Resolves: https://issues.redhat.com/browse/OSH-764 Closes: konflux-ci#1524
00a6289
to
4a91952
Compare
Before this change, the `sast-unicode-check` was failing with the default parameters because the script was passing the whole list of arguments as a single argument: ``` + mapfile -t fuc_args + LANG=en_US.utf8 + ./find-unicode-control/find_unicode_control.py '-p bidi -v -d -t' /var/workdir/source + FUC_EXIT_CODE=2 + [[ 2 -ne 0 ]] + [[ 2 -ne 1 ]] + echo 'Failed to run find-unicode-control command' Failed to run find-unicode-control command + cat raw_sast_unicode_check_out.log usage: find_unicode_control.py [-h] [-p {all,bidi}] [-v] [-d] [-t] [-c CONFIG] path [path ...] find_unicode_control.py: error: argument -p/--nonprint: invalid choice: ' bidi -v -d -t' (choose from 'all', 'bidi') + note='Task sast-unicode-check-oci-ta failed: For details, check Tekton task log.' ++ make_result_json -r ERROR -t 'Task sast-unicode-check-oci-ta failed: For details, check Tekton task log.' ``` Fixes: konflux-ci#1401 Related: konflux-ci#1524
Create the `-oci-ta` variant of the `sast-unicode-check` task. Related: konflux-ci#1401 Resolves: https://issues.redhat.com/browse/OSH-764 Closes: konflux-ci#1524
Create the `-oci-ta` variant of the `sast-unicode-check` task. Related: konflux-ci#1401 Resolves: https://issues.redhat.com/browse/OSH-764 Closes: konflux-ci#1524
4a91952
to
d2836e2
Compare
@hongweiliu17 @tkdchen This CI job has been running for more than 24 hours. Could you please check what happened? |
Don't know why the PLR has been deleted but not written back to git provider. Maybe it is caused by the outage. Let's retest it. BTW: You may request permission to the workspace konflux-ci to check the result. |
/retest |
When I click any link in the CI results, I can only see this: There is no link to request access. I found an Access Request form at https://console.redhat.com/internal but I do not know Account number and Organization ID that should be put into this form. Using my own numbers resulted in the following failure: |
Before this change, the `sast-unicode-check` was failing with the default parameters because the script was passing the whole list of arguments as a single argument: ``` + mapfile -t fuc_args + LANG=en_US.utf8 + ./find-unicode-control/find_unicode_control.py '-p bidi -v -d -t' /var/workdir/source + FUC_EXIT_CODE=2 + [[ 2 -ne 0 ]] + [[ 2 -ne 1 ]] + echo 'Failed to run find-unicode-control command' Failed to run find-unicode-control command + cat raw_sast_unicode_check_out.log usage: find_unicode_control.py [-h] [-p {all,bidi}] [-v] [-d] [-t] [-c CONFIG] path [path ...] find_unicode_control.py: error: argument -p/--nonprint: invalid choice: ' bidi -v -d -t' (choose from 'all', 'bidi') + note='Task sast-unicode-check-oci-ta failed: For details, check Tekton task log.' ++ make_result_json -r ERROR -t 'Task sast-unicode-check-oci-ta failed: For details, check Tekton task log.' ``` Fixes: konflux-ci#1401 Related: konflux-ci#1524
Create the `-oci-ta` variant of the `sast-unicode-check` task. Related: konflux-ci#1401 Resolves: https://issues.redhat.com/browse/OSH-764 Closes: konflux-ci#1524
d2836e2
to
7b71a19
Compare
Before this change, the `sast-unicode-check` was failing with the default parameters because the script was passing the whole list of arguments as a single argument: ``` + mapfile -t fuc_args + LANG=en_US.utf8 + ./find-unicode-control/find_unicode_control.py '-p bidi -v -d -t' /var/workdir/source + FUC_EXIT_CODE=2 + [[ 2 -ne 0 ]] + [[ 2 -ne 1 ]] + echo 'Failed to run find-unicode-control command' Failed to run find-unicode-control command + cat raw_sast_unicode_check_out.log usage: find_unicode_control.py [-h] [-p {all,bidi}] [-v] [-d] [-t] [-c CONFIG] path [path ...] find_unicode_control.py: error: argument -p/--nonprint: invalid choice: ' bidi -v -d -t' (choose from 'all', 'bidi') + note='Task sast-unicode-check-oci-ta failed: For details, check Tekton task log.' ++ make_result_json -r ERROR -t 'Task sast-unicode-check-oci-ta failed: For details, check Tekton task log.' ``` Fixes: konflux-ci#1401 Related: konflux-ci#1524
Create the `-oci-ta` variant of the `sast-unicode-check` task. Related: konflux-ci#1401 Resolves: https://issues.redhat.com/browse/OSH-764 Closes: konflux-ci#1524
7b71a19
to
424fdf9
Compare
f97c593
to
dd54e7c
Compare
Create the `-oci-ta` variant of the `sast-unicode-check` task. Related: konflux-ci#1401 Resolves: https://issues.redhat.com/browse/OSH-764 Closes: konflux-ci#1524
Create the `-oci-ta` variant of the `sast-unicode-check` task. Related: konflux-ci#1401 Resolves: https://issues.redhat.com/browse/OSH-764 Closes: konflux-ci#1524
dd54e7c
to
8e31162
Compare
/retest |
@hongweiliu17 There was a successful CI run yesterday: https://github.com/konflux-ci/build-definitions/runs/33305152289 How come it is now red again? |
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 generally. It's hard for me to review the logic of the script implementation since I'm not in the specific field.
|
Before this change, the `sast-unicode-check` was failing with the default parameters because the script was passing the whole list of arguments as a single argument: ``` + mapfile -t fuc_args + LANG=en_US.utf8 + ./find-unicode-control/find_unicode_control.py '-p bidi -v -d -t' /var/workdir/source + FUC_EXIT_CODE=2 + [[ 2 -ne 0 ]] + [[ 2 -ne 1 ]] + echo 'Failed to run find-unicode-control command' Failed to run find-unicode-control command + cat raw_sast_unicode_check_out.log usage: find_unicode_control.py [-h] [-p {all,bidi}] [-v] [-d] [-t] [-c CONFIG] path [path ...] find_unicode_control.py: error: argument -p/--nonprint: invalid choice: ' bidi -v -d -t' (choose from 'all', 'bidi') + note='Task sast-unicode-check-oci-ta failed: For details, check Tekton task log.' ++ make_result_json -r ERROR -t 'Task sast-unicode-check-oci-ta failed: For details, check Tekton task log.' ``` Fixes: konflux-ci#1401 Related: konflux-ci#1524
... instead of PROJECT_NVR to make the interface compatible with the sast-shell-check task. Related: konflux-ci#1524
Create the `-oci-ta` variant of the `sast-unicode-check` task. Related: konflux-ci#1401 Resolves: https://issues.redhat.com/browse/OSH-764 Closes: konflux-ci#1524
0b645f6
to
97f438b
Compare
Comment for |
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.
LGTM code-wise
I can see this is approved and CI checks are all green. @14rcole Could we please proceed with merging this? |
Before this change, the `sast-unicode-check` was failing with the default parameters because the script was passing the whole list of arguments as a single argument: ``` + mapfile -t fuc_args + LANG=en_US.utf8 + ./find-unicode-control/find_unicode_control.py '-p bidi -v -d -t' /var/workdir/source + FUC_EXIT_CODE=2 + [[ 2 -ne 0 ]] + [[ 2 -ne 1 ]] + echo 'Failed to run find-unicode-control command' Failed to run find-unicode-control command + cat raw_sast_unicode_check_out.log usage: find_unicode_control.py [-h] [-p {all,bidi}] [-v] [-d] [-t] [-c CONFIG] path [path ...] find_unicode_control.py: error: argument -p/--nonprint: invalid choice: ' bidi -v -d -t' (choose from 'all', 'bidi') + note='Task sast-unicode-check-oci-ta failed: For details, check Tekton task log.' ++ make_result_json -r ERROR -t 'Task sast-unicode-check-oci-ta failed: For details, check Tekton task log.' ``` Fixes: #1401 Related: #1524
... instead of PROJECT_NVR to make the interface compatible with the sast-shell-check task. Related: #1524
Create the
-oci-ta
variant of thesast-unicode-check
task.Related: #1401
Resolves: https://issues.redhat.com/browse/OSH-764