Skip to content

fix(rhtapbugs=975): use source_url instead of repo_url for git-url#235

Merged
mmorhun merged 1 commit into
konflux-ci:mainfrom
14rcole:rhtapbugs-975
Dec 22, 2023
Merged

fix(rhtapbugs=975): use source_url instead of repo_url for git-url#235
mmorhun merged 1 commit into
konflux-ci:mainfrom
14rcole:rhtapbugs-975

Conversation

@14rcole
Copy link
Copy Markdown
Contributor

@14rcole 14rcole commented Dec 18, 2023

The repo_url variable in pull request jobs points to the target repo. The git-url parameter of build pipelineRuns is passed to the integration service. If users attempt to clone this URL with the revision from the 'revision' parameter (which is the revision of the source URL) an error will occur. Tekton also has a 'source_url' variable that points to the source repo in pull request jobs, which fixes the problem. In push jobs 'source_repo' defaults to the same value as 'repo_url'. Therefore defaulting to 'source_repo' should not cause any other bugs'

Checklist:

  • PR has reference to the issue(s) it resolves
  • Write / update unit tests
  • Write / update integration (envtest) tests
  • Ensure there is an issue for e2e tests if needed
  • Ensure make test passes
  • Ensure test coverage hasn't decreased
  • Test code changes manually
  • Update readme and documentation
  • Write PR description that highlights overall changes and add usage examples if applicable

@openshift-ci openshift-ci Bot requested review from mmorhun and psturc December 18, 2023 19:48
The repo_url variable in pull request jobs points to the target repo.
The git-url parameter of build pipelineRuns is passed to the integration
service.  If users attempt to clone this URL with the revision from the
'revision' parameter (which is the revision of the source URL) an error
will occur.  Tekton also has a 'source_url' variable that points to the
source repo in pull request jobs, which fixes the problem.  In push jobs
'source_repo' defaults to the same value as 'repo_url'.  Therefore
defaulting to 'source_repo' should not cause any other bugs'

Signed-off-by: Ryan Cole <rcyoalne@gmail.com>
@sonarqubecloud
Copy link
Copy Markdown

Quality Gate Passed Quality Gate passed

Kudos, no new issues were introduced!

0 New issues
0 Security Hotspots
No data about Coverage
2.9% Duplication on New Code

See analysis details on SonarCloud

@tkdchen
Copy link
Copy Markdown
Contributor

tkdchen commented Dec 19, 2023

/test build-service-e2e

Copy link
Copy Markdown
Member

@mmorhun mmorhun left a comment

Choose a reason for hiding this comment

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

@14rcole thank you for the improvement.
LGTM, but please make sure that e2e tests are passing.

@sonam1412
Copy link
Copy Markdown

/test build-service-e2e

@14rcole
Copy link
Copy Markdown
Contributor Author

14rcole commented Dec 20, 2023

/retest-required

@14rcole
Copy link
Copy Markdown
Contributor Author

14rcole commented Dec 20, 2023

@mmorhun Can you please merge this? I don't have write access.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants