Skip to content

Add skip security context flag in e2e script#1853

Merged
tekton-robot merged 2 commits intotektoncd:mainfrom
khrm:skipContext
Jul 4, 2025
Merged

Add skip security context flag in e2e script#1853
tekton-robot merged 2 commits intotektoncd:mainfrom
khrm:skipContext

Conversation

@khrm
Copy link
Contributor

@khrm khrm commented Jul 3, 2025

This enables us to run e2e tests in environment where default security context is different.

Changes

Submitter Checklist

As the author of this PR, please check off the items in this checklist:

  • Has Docs if any changes are user facing, including updates to minimum requirements e.g. Kubernetes version bumps
  • Has Tests included if any functionality added or changed
  • Follows the commit message standard
  • Meets the Tekton contributor standards (including functionality, content, code)
  • Has a kind label. You can add one by adding a comment on this PR that contains /kind <type>. Valid types are bug, cleanup, design, documentation, feature, flake, misc, question, tep
  • Release notes block below has been updated with any user facing changes (API changes, bug fixes, changes requiring upgrade notices or deprecation warnings). See some examples of good release notes.
  • Release notes contains the string "action required" if the change requires additional action from users switching to the new release

Release Notes

NONE

@tekton-robot tekton-robot added the release-note-none Denotes a PR that doesnt merit a release note. label Jul 3, 2025
@tekton-robot tekton-robot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Jul 3, 2025
Copy link
Contributor Author

@khrm khrm left a comment

Choose a reason for hiding this comment

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

/kind misc

@tekton-robot tekton-robot added the kind/misc Categorizes issue or PR as a miscellaneuous one. label Jul 3, 2025
@khrm khrm requested a review from Copilot July 3, 2025 13:14

This comment was marked as outdated.

@khrm khrm requested a review from Copilot July 3, 2025 13:24

This comment was marked as outdated.

@khrm
Copy link
Contributor Author

khrm commented Jul 3, 2025

/test tekton-triggers-unit-tests

@khrm khrm force-pushed the skipContext branch 2 times, most recently from c6a87fa to 6a2251e Compare July 3, 2025 13:41
@khrm khrm requested a review from Copilot July 3, 2025 13:42

This comment was marked as outdated.

@khrm khrm requested a review from Copilot July 3, 2025 13:46
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

ko apply -f config/interceptors || fail_test "Core interceptors installation failed"
ko resolve -f config/interceptors > "${rel}" || fail_test "Core interceptors build failed"

if [ "${SKIP_SECURITY_CTX}" == "true" ]; then
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we are setting SKIP_SECURITY_CTX as false do we still need this change??

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I didn't get this. We need this when SKIP_SECURITY_CTX is true.

# instead of detecting the latest released one from tektoncd/pipeline releases
RELEASE_YAML=${RELEASE_YAML:-}

SKIP_SECURITY_CTX=${SKIP_SECURITY_CTX:="false"}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

We set this here so that this file can be run independently.

khrm added 2 commits July 4, 2025 16:19
This enables us to run e2e tests in environment where
default security context is different.
Before there was no way to know which particular tests have failed
without going through all logs. Now, it will print which tests
have failed.
Copy link
Contributor

@savitaashture savitaashture left a comment

Choose a reason for hiding this comment

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

/lgtm

@tekton-robot tekton-robot added the lgtm Indicates that a PR is ready to be merged. label Jul 4, 2025
@tekton-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: savitaashture

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 Jul 4, 2025
@tekton-robot tekton-robot merged commit 77fcead into tektoncd:main Jul 4, 2025
9 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/misc Categorizes issue or PR as a miscellaneuous one. lgtm Indicates that a PR is ready to be merged. release-note-none Denotes a PR that doesnt merit a release note. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants