Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Utilise LocalProjectBuilder for LP initalisation #2449

Merged
merged 1 commit into from
Jun 26, 2024

Conversation

lbarcziova
Copy link
Member

With this change, for copr builds also try to not clone the repo.

Fixes #1955
Related to #2411

For now no release notes, I would like to see whether this will work on staging as intended.

RELEASE NOTES BEGIN

N/A

RELEASE NOTES END

This comment was marked as outdated.

softwarefactory-project-zuul bot added a commit to packit/packit that referenced this pull request Jun 26, 2024
LocalProject and builder improvements

Needed for packit/packit-service#2449
RELEASE NOTES BEGIN
N/A
RELEASE NOTES END

Reviewed-by: Matej Focko
Reviewed-by: Laura Barcziová

This comment was marked as outdated.

@lbarcziova

This comment was marked as outdated.

This comment was marked as outdated.

@lbarcziova

This comment was marked as outdated.

This comment was marked as outdated.

@danpawlik

This comment was marked as outdated.

This comment was marked as outdated.

@danpawlik

This comment was marked as outdated.

This comment was marked as outdated.

@danpawlik

This comment was marked as outdated.

This comment was marked as outdated.

With this change, for copr builds also try to not clone the repo.
Related to packit#2411
Copy link
Contributor

Copy link
Member

@lachmanfrantisek lachmanfrantisek left a comment

Choose a reason for hiding this comment

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

Looks good to me! Even the tests did not require massive changes...

+1 for trying this on stage

Comment on lines +98 to +112
self._local_project = builder.build(
git_project=self.project,
working_dir=self.service_config.command_handler_work_dir,
ref=self.metadata.git_ref,
pr_id=self.metadata.pr_id,
merge_pr=self.package_config.merge_pr_in_ci,
git_url=CALCULATE,
repo_name=CALCULATE,
full_name=CALCULATE,
namespace=CALCULATE,
git_repo=(
CALCULATE
if self.require_git_repo_in_local_project
else NOT_TO_CALCULATE
),
Copy link
Member

Choose a reason for hiding this comment

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

Nicely explicit what is going on here... Finally getting some fruits from work on all of this...;)

@lbarcziova lbarcziova added the mergeit When set, zuul wil gate and merge the PR. label Jun 26, 2024
Copy link
Contributor

Build succeeded (gate pipeline).
https://softwarefactory-project.io/zuul/t/packit-service/buildset/a03d33d6c52948bb8a03c65c8847f633

✔️ pre-commit SUCCESS in 2m 30s

@softwarefactory-project-zuul softwarefactory-project-zuul bot merged commit aad797a into packit:main Jun 26, 2024
4 checks passed
@lbarcziova lbarcziova deleted the lp-builder branch June 26, 2024 13:53
@lbarcziova lbarcziova mentioned this pull request Aug 1, 2024
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
mergeit When set, zuul wil gate and merge the PR.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use LocalProbjectBuilder instead of old LocalProject constructor
3 participants