Skip to content

chore: fix failing unit tests during upgrade#3441

Open
anithapriyanatarajan wants to merge 1 commit into
tektoncd:dependabot/go_modules/github.com/openshift-pipelines/pipelines-as-code-0.46.0from
anithapriyanatarajan:fix-unit-test
Open

chore: fix failing unit tests during upgrade#3441
anithapriyanatarajan wants to merge 1 commit into
tektoncd:dependabot/go_modules/github.com/openshift-pipelines/pipelines-as-code-0.46.0from
anithapriyanatarajan:fix-unit-test

Conversation

@anithapriyanatarajan
Copy link
Copy Markdown
Contributor

Changes

This PR addresses the unit test failures during PAC upgrade. #3432

TestUpdateAdditionControllerConfigMap was failing because the expected ConfigMap fixture was stale. PaC PR tektoncd/pipelines-as-code#2605 (merged April 17, 2026) added three new fields to the Settings struct for distributed tracing support:

  • tracing-label-action
  • tracing-label-application
  • tracing-label-component

The operator's ConvertPacStructToConfigMap uses reflection over all Settings struct fields, so these new keys are automatically included in the generated ConfigMap as empty-string defaults. The test fixture had not been updated to reflect this.

Fix

Added the three new tracing keys (all defaulting to "") to the expected ConfigMap fixture:
test-expected-additional-pac-cm.yaml
No production code changes were required this is purely a test fixture sync to match the upstream PaC vendor update.

Tests Impacted

TestUpdateAdditionControllerConfigMap
TestUpdateAdditionControllerConfigMapWithDefaultCM

Submitter Checklist

These are the criteria that every PR should meet, please check them off as you
review them:

See the contribution guide for more details.

Release Notes

NONE

@tekton-robot tekton-robot added the release-note-none Denotes a PR that doesnt merit a release note. label May 21, 2026
@tekton-robot
Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
To complete the pull request process, please ask for approval from anithapriyanatarajan after the PR has been reviewed.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@tekton-robot tekton-robot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label May 21, 2026
@anithapriyanatarajan
Copy link
Copy Markdown
Contributor Author

cc: @zakisk @jkhelil

@anithapriyanatarajan
Copy link
Copy Markdown
Contributor Author

/kind cleanup

@tekton-robot tekton-robot added the kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. label May 21, 2026
Signed-off-by: Anitha Natarajan <anataraj@redhat.com>
@tekton-robot tekton-robot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. and removed size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels May 21, 2026
@anithapriyanatarajan
Copy link
Copy Markdown
Contributor Author

@tektoncd/operator-maintainers - could we please merge so that we can merge -#3432

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. release-note-none Denotes a PR that doesnt merit a release note. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants