Skip to content

fix(verify-source): return results without trailing newlines#2875

Merged
arewm merged 1 commit into
konflux-ci:mainfrom
ralphbean:fix-verify-source-newline-handling
Mar 4, 2026
Merged

fix(verify-source): return results without trailing newlines#2875
arewm merged 1 commit into
konflux-ci:mainfrom
ralphbean:fix-verify-source-newline-handling

Conversation

@ralphbean
Copy link
Copy Markdown
Member

Summary

Addresses the review comment from PR #2867: "Consider not removing the newline here - I think we want the Task to return results without trailing newlines and the test should verify that"

This PR modifies the verify-source task to write results without trailing newlines and updates both test files to expect this behavior.

Changes

  1. Task (verify-source.yaml): Changed from echo to printf '%s' when writing results to avoid appending trailing newlines
  2. Tests: Removed the tr -d '\n' logic that was stripping newlines, since the Task now returns clean results
  3. Updated both test files:
    • test-verify-source-with-vsa.yaml
    • test-verify-source-no-vsa.yaml

Testing

  • ✅ YAML syntax validated with yamllint
  • CI tests will validate Tekton task execution

Related


Generated with assistance from Claude Code

Modify Task to write results using printf instead of echo to
avoid trailing newlines. Update tests to expect newline-less
results instead of stripping them.

Addresses review comment from PR konflux-ci#2867.

Assisted-by: Claude Code
Signed-off-by: Ralph Bean <rbean@redhat.com>
Copy link
Copy Markdown
Member

@arewm arewm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@arewm arewm added this pull request to the merge queue Mar 4, 2026
Merged via the queue into konflux-ci:main with commit 5ca90f1 Mar 4, 2026
18 checks passed
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.

2 participants