fix: Add target ns annotation to on-tag e2e pipelinerun#2495
Conversation
Summary of ChangesHello @chmouel, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request addresses a critical bug affecting end-to-end tests by introducing a missing annotation to a Tekton PipelineRun definition. The absence of this annotation led to test failures, and its inclusion ensures the proper execution and validation of the Highlights
Changelog
Activity
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Pull request overview
This PR fixes a missing annotation in the end-to-end test file for tag-based pipeline runs. The pipelinesascode.tekton.dev/target-namespace annotation was absent from pipelinerun-on-tag.yaml, which was causing test failures when running tag-based GitOps tests.
Changes:
- Added the
target-namespaceannotation to thepipelinerun-on-tag.yamltest file with the correct template syntax
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Code Review
This pull request correctly fixes a bug in an end-to-end test by adding the missing pipelinesascode.tekton.dev/target-namespace annotation to the pipelinerun-on-tag.yaml test data. This change is necessary to ensure the PipelineRun is created in the correct namespace during testing, resolving the assertion failures mentioned in the description. The implementation is straightforward and I have no further suggestions.
900f841 to
1f0696b
Compare
We missed it and this was causing all soft of issues when running the tests, like this error: "test/gitlab_merge_request_test.go:687", "msg":"Changing Title on MergeRequest https://gitlab.pipelinesascode.com/pac/e2e-testing/-/merge_requests/184"} gitlab_merge_request_test.go:697: assertion failed: len(prs.Items) is not 2 --- FAIL: TestGitlabMergeRequestOnUpdateAtAndLabelChange (33.54s) Signed-off-by: Chmouel Boudjnah <chmouel@redhat.com>
1f0696b to
119d17e
Compare
📝 Description of the Change
We missed it and this was causing all soft of issues when running the tests, like this error:
👨🏻 Linked Jira
🔗 Linked GitHub Issue
Fixes #
🚀 Type of Change
fix:)feat:)feat!:,fix!:)docs:)chore:)refactor:)enhance:)deps:)🧪 Testing Strategy
🤖 AI Assistance
If you have used AI assistance, please provide the following details:
Which LLM was used?
Extent of AI Assistance:
Important
If the majority of the code in this PR was generated by an AI, please add a
Co-authored-bytrailer to your commit message.For example:
Co-authored-by: Gemini gemini@google.com
Co-authored-by: ChatGPT noreply@chatgpt.com
Co-authored-by: Claude noreply@anthropic.com
Co-authored-by: Cursor noreply@cursor.com
Co-authored-by: Copilot Copilot@users.noreply.github.com
**💡You can use the script
./hack/add-llm-coauthor.shto automatically addthese co-author trailers to your commits.
✅ Submitter Checklist
fix:,feat:) matches the "Type of Change" I selected above.make testandmake lintlocally to check for and fix anyissues. For an efficient workflow, I have considered installing
pre-commit and running
pre-commit installtoautomate these checks.