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

fix(launchpad): use the project's privacy for repos and recipes #615

Merged
merged 4 commits into from
Jan 29, 2025

Conversation

mr-cal
Copy link
Contributor

@mr-cal mr-cal commented Jan 27, 2025

  • Have you followed the guidelines for contributing?
  • Have you signed the CLA?
  • Have you successfully run tox?

Fixes a bug where the remote-builder would create a public repository and recipe, even when the project is private.

This is a backward-compatible change, but raises a deprecation warning if a project could be public.

I tested with snapcraft and can confirm the recipe and repo are private.

Fixes #614
(CRAFT-3984)

Signed-off-by: Callahan Kovacs <callahan.kovacs@canonical.com>
@mr-cal
Copy link
Contributor Author

mr-cal commented Jan 27, 2025

@lengau, can I get a pre-review from you? I'm waiting to write unit tests until after I get your feedback on the design.

@mr-cal mr-cal requested a review from lengau January 27, 2025 23:01
Signed-off-by: Callahan Kovacs <callahan.kovacs@canonical.com>
@mr-cal mr-cal requested a review from lengau January 28, 2025 16:15
@lengau
Copy link
Contributor

lengau commented Jan 28, 2025

Current implementation looks good

@mr-cal mr-cal added the squash label Jan 28, 2025
@mr-cal mr-cal changed the title fix(launchpad): use project privacy for repo and recipe fix(launchpad): use the project's privacy for repos and recipes Jan 28, 2025
Signed-off-by: Callahan Kovacs <callahan.kovacs@canonical.com>
@mr-cal mr-cal requested a review from bepri January 28, 2025 21:37
@mr-cal mr-cal requested a review from lengau January 28, 2025 23:06
Copy link
Contributor

@bepri bepri 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! I think Alex's pre-review caught pretty much everything I would've. Just a lil nitpick:

tests/unit/services/conftest.py Outdated Show resolved Hide resolved
Signed-off-by: Callahan Kovacs <callahan.kovacs@canonical.com>
Copy link
Contributor

@lengau lengau left a comment

Choose a reason for hiding this comment

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

Review status: I'm happy with the full design etc., but we probably need to hop in a call to figure out the private vs proprietary situation

@lengau lengau merged commit 7c7f406 into main Jan 29, 2025
9 checks passed
@lengau lengau deleted the work/CRAFT-3984-private-repos branch January 29, 2025 18:35
lengau pushed a commit that referenced this pull request Jan 29, 2025
Signed-off-by: Callahan Kovacs <callahan.kovacs@canonical.com>
mr-cal added a commit that referenced this pull request Feb 4, 2025
Signed-off-by: Callahan Kovacs <callahan.kovacs@canonical.com>
@mr-cal mr-cal mentioned this pull request Feb 4, 2025
4 tasks
mr-cal added a commit that referenced this pull request Feb 4, 2025
Signed-off-by: Callahan Kovacs <callahan.kovacs@canonical.com>
mr-cal added a commit that referenced this pull request Feb 4, 2025
Signed-off-by: Callahan Kovacs <callahan.kovacs@canonical.com>
mr-cal added a commit that referenced this pull request Feb 4, 2025
Signed-off-by: Callahan Kovacs <callahan.kovacs@canonical.com>
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.

Remote build: Uploaded repository should have the same information type as the project
3 participants