openshift-pipelines / pipelines-as-code

Pipelines-as-Code for Tekton
https://pipelinesascode.com
Apache License 2.0
124 stars 81 forks source link

Fix secret generation issue when GitOps comments are executed on commits #1684

Closed savitaashture closed 1 month ago

savitaashture commented 1 month ago

This update corrects the creation of an auto-generated secret that previously had an invalid or missing value for git-provider-token key

Fixes: https://issues.redhat.com/browse/SRVKP-4561

Signed-off-by: Savita Ashture sashture@redhat.com

Changes

Submitter Checklist

codecov[bot] commented 1 month ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 64.54%. Comparing base (35e3307) to head (7fa45ec). Report is 2 commits behind head on main.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #1684 +/- ## ========================================== + Coverage 64.52% 64.54% +0.01% ========================================== Files 143 143 Lines 11093 11098 +5 ========================================== + Hits 7158 7163 +5 Misses 3413 3413 Partials 522 522 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

chmouel commented 1 month ago

i haven't tested that fix manually but the e2e test looks good,

chmouel commented 1 month ago

/retest

savitaashture commented 1 month ago

E2E Failure

{"level":"info","ts":1716789274.1189997,"caller":"test/github_pullrequest_concurrency_test.go:125","msg":"the 5 pipelineruns has successfully finished"}
    github_pullrequest_concurrency_test.go:145: assertion failed: expression is false: strings.HasPrefix(prActualName, prExpectedName): prActualName: no-match-f7jv4 does not start with expected prefix prlongrunnning-6, was is ordered properly at start time
{"level":"info","ts":1716789274.1404073,"caller":"github/pr.go:186","msg":"Closing PR 2228"}
{"level":"info","ts":1716789274.6032455,"caller":"repository/teardown.go:13","msg":"Deleting Repository in pac-e2e-ns-xmjxq"}
{"level":"info","ts":1716789274.6077428,"caller":"repository/teardown.go:16","msg":"Deleting NS pac-e2e-ns-xmjxq"}
{"level":"info","ts":1716789274.6104174,"caller":"github/pr.go:199","msg":"Deleting Ref refs/heads/pac-e2e-test-z92q4"}
--- FAIL: TestGithubSecondPullRequestConcurrency1by1 (87.47s)

Restarting to see

savitaashture commented 1 month ago

/test