Skip to content

fix: Take first of $FUNCNAME in check-konflux-setup.sh#15866

Merged
msugakov merged 1 commit intomasterfrom
misha/fix-funcname
Jul 7, 2025
Merged

fix: Take first of $FUNCNAME in check-konflux-setup.sh#15866
msugakov merged 1 commit intomasterfrom
misha/fix-funcname

Conversation

@msugakov
Copy link
Contributor

@msugakov msugakov commented Jun 27, 2025

Description

In #15818, shellcheck that runs in CI told me that FUNCNAME is actually an array and it's no good to access its first element without explicitly telling so. Here's the fix for master (already applied for 4.6 in 137338b (#15818)).

I'm a bit left wondering what happened to shellcheck after 4.6 because this issue was not revealed by CI when I was developing the script, but I'll leave this discovery for the future.

User-facing documentation

Testing and quality

  • the change is production ready: the change is GA, or otherwise the functionality is gated by a feature flag
  • CI results are inspected

Automated testing

No change.

How I validated my change

Tested manually. Broke things a bit in .tekton/operator-bundle-pipeline.yaml, ran scripts/ci/jobs/check-konflux-setup.sh and observed it still prints the failing function name at the end of the output.

@openshift-ci
Copy link

openshift-ci bot commented Jun 27, 2025

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@red-hat-konflux
Copy link
Contributor

Caution

There are some errors in your PipelineRun template.

PipelineRun Error
quay-proxy no kind "ImageDigestMirrorSet" is registered for version "config.openshift.io/v1" in scheme "k8s.io/client-go/kubernetes/scheme/register.go:83"

@rhacs-bot
Copy link
Contributor

Images are ready for the commit at 33edf78.

To use with deploy scripts, first export MAIN_IMAGE_TAG=4.9.x-139-g33edf7878f.

@codecov
Copy link

codecov bot commented Jun 27, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 48.79%. Comparing base (f9e3c94) to head (33edf78).
Report is 36 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #15866      +/-   ##
==========================================
- Coverage   48.80%   48.79%   -0.01%     
==========================================
  Files        2589     2589              
  Lines      190588   190588              
==========================================
- Hits        93011    92994      -17     
- Misses      90276    90288      +12     
- Partials     7301     7306       +5     
Flag Coverage Δ
go-unit-tests 48.79% <ø> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@msugakov msugakov marked this pull request as ready for review July 4, 2025 10:59
@msugakov msugakov requested a review from tommartensen July 4, 2025 10:59
@openshift-ci
Copy link

openshift-ci bot commented Jul 4, 2025

@msugakov: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/gke-qa-e2e-tests 33edf78 link false /test gke-qa-e2e-tests
ci/prow/ocp-4-12-qa-e2e-tests 33edf78 link false /test ocp-4-12-qa-e2e-tests
ci/prow/ocp-4-18-qa-e2e-tests 33edf78 link false /test ocp-4-18-qa-e2e-tests

Full PR test history. Your PR dashboard.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

@msugakov
Copy link
Contributor Author

msugakov commented Jul 4, 2025

/retest blah

@stackrox stackrox deleted a comment from openshift-ci bot Jul 4, 2025
@msugakov msugakov merged commit 16b804c into master Jul 7, 2025
103 of 106 checks passed
@msugakov msugakov deleted the misha/fix-funcname branch July 7, 2025 12:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants