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

feat!: validate devel bases #302

Merged
merged 12 commits into from
Apr 18, 2024
Merged

feat!: validate devel bases #302

merged 12 commits into from
Apr 18, 2024

Conversation

mr-cal
Copy link
Contributor

@mr-cal mr-cal commented Apr 9, 2024

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

Upstream build-base devel validation for all *craft applications. This draft treats devel as the devel base, but I will update this to 26.04 before this PR can land 24.10 when it is available.

Downstream integrations:

Fixes #298
(CRAFT-2675)

Copy link
Contributor

@tigarmo tigarmo left a comment

Choose a reason for hiding this comment

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

thanks! Some minor comments but I agree with the overall direction
would love to get input from the rest of the team (since this was originally my suggestion). Since I'm gone for the rest of the week whatever you agree to do is fine with me.

craft_application/models/project.py Show resolved Hide resolved
craft_application/models/project.py Show resolved Hide resolved
craft_application/models/project.py Outdated Show resolved Hide resolved
mr-cal added 2 commits April 12, 2024 08:19
Signed-off-by: Callahan Kovacs <[email protected]>
Signed-off-by: Callahan Kovacs <[email protected]>
@mr-cal mr-cal force-pushed the work/CRAFT-2675-base-validation branch from 744ebf4 to da273cb Compare April 12, 2024 13:19
@mr-cal mr-cal requested review from tigarmo, cmatsuoka and lengau April 12, 2024 13:45
Signed-off-by: Callahan Kovacs <[email protected]>
@mr-cal mr-cal marked this pull request as ready for review April 12, 2024 13:49
@mr-cal mr-cal changed the title [DRAFT] feat: validate devel bases feat: validate devel bases Apr 12, 2024
craft_application/application.py Outdated Show resolved Hide resolved
craft_application/models/project.py Outdated Show resolved Hide resolved
craft_application/models/project.py Outdated Show resolved Hide resolved
craft_application/services/provider.py Outdated Show resolved Hide resolved
Signed-off-by: Callahan Kovacs <[email protected]>
@lengau lengau changed the title feat: validate devel bases feat!: validate devel bases Apr 12, 2024
@lengau lengau self-requested a review April 12, 2024 22:22
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.

LGTM!

craft_application/models/project.py Outdated Show resolved Hide resolved
craft_application/models/project.py Show resolved Hide resolved
craft_application/services/provider.py Outdated Show resolved Hide resolved
- make error message more generic
- move warning message to Project

Signed-off-by: Callahan Kovacs <[email protected]>
Copy link
Contributor

@tigarmo tigarmo left a comment

Choose a reason for hiding this comment

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

nice thanks

@mr-cal mr-cal merged commit aeae554 into main Apr 18, 2024
6 checks passed
@mr-cal mr-cal deleted the work/CRAFT-2675-base-validation branch April 18, 2024 19:31
mr-cal added a commit that referenced this pull request Apr 24, 2024
This is a partial revert of 'aeae554 feat!: validate devel bases (#302)'.

The base validation is not reverted, but there is now a default
implementation for `Project._providers_base()` such that applications do not
need to subclass the Project model.

Signed-off-by: Callahan Kovacs <[email protected]>
mr-cal added a commit that referenced this pull request Apr 24, 2024
This is a partial revert of 'aeae554 feat!: validate devel bases (#302)'.

The base validation is not reverted, but there is now a default
implementation for `Project._providers_base()` such that applications do not
need to subclass the Project model.

Signed-off-by: Callahan Kovacs <[email protected]>
mr-cal added a commit that referenced this pull request Apr 25, 2024
This is a partial revert of 'aeae554 feat!: validate devel bases (#302)'.

The base validation is not reverted, but there is now a default
implementation for `Project._providers_base()` such that applications do not
need to subclass the Project model.

Signed-off-by: Callahan Kovacs <[email protected]>
lengau pushed a commit that referenced this pull request Apr 26, 2024
This is a partial revert of 'aeae554 feat!: validate devel bases (#302)'.

The base validation is not reverted, but there is now a default
implementation for `Project._providers_base()` such that applications do not
need to subclass the Project model.

Signed-off-by: Callahan Kovacs <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Mechanism to handle/promote 'devel' bases
3 participants