Skip to content

chore: fix failing unit tests during upgrade#3441

Merged
tekton-robot merged 2 commits into
tektoncd:dependabot/go_modules/github.com/openshift-pipelines/pipelines-as-code-0.46.0from
anithapriyanatarajan:fix-unit-test
May 28, 2026
Merged

chore: fix failing unit tests during upgrade#3441
tekton-robot merged 2 commits 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

Bumps [github.com/openshift-pipelines/pipelines-as-code](https://github.com/openshift-pipelines/pipelines-as-code) from 0.45.0 to 0.46.0.
- [Release notes](https://github.com/openshift-pipelines/pipelines-as-code/releases)
- [Commits](tektoncd/pipelines-as-code@v0.45.0...v0.46.0)

---
updated-dependencies:
- dependency-name: github.com/openshift-pipelines/pipelines-as-code
  dependency-version: 0.46.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@tekton-robot tekton-robot added the release-note-none Denotes a PR that doesnt merit a release note. label May 21, 2026
@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

@pratap0007
Copy link
Copy Markdown
Contributor

/lgtm

@tekton-robot tekton-robot added the lgtm Indicates that a PR is ready to be merged. label May 25, 2026
@dependabot dependabot Bot force-pushed the dependabot/go_modules/github.com/openshift-pipelines/pipelines-as-code-0.46.0 branch from 84b42f4 to fb4e69a Compare May 28, 2026 07:25
@jkhelil
Copy link
Copy Markdown
Member

jkhelil commented May 28, 2026

/approve

@tekton-robot
Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: jkhelil

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

The pull request process is described 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 approved Indicates a PR has been approved by an approver from all required OWNERS files. label May 28, 2026
@tekton-robot tekton-robot merged commit aa7b595 into tektoncd:dependabot/go_modules/github.com/openshift-pipelines/pipelines-as-code-0.46.0 May 28, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. lgtm Indicates that a PR is ready to be merged. 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.

4 participants