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

chore(merge): merge '2.9.0' into 'main' #376

Merged
merged 15 commits into from
Jul 5, 2024
Merged

chore(merge): merge '2.9.0' into 'main' #376

merged 15 commits into from
Jul 5, 2024

Commits on Jul 3, 2024

  1. feat: docs url composition for parts

    Signed-off-by: Sergio Schvezov <sergio.schvezov@canonical.com>
    sergiusens authored and tigarmo committed Jul 3, 2024
    Configuration menu
    Copy the full SHA
    7fff65b View commit details
    Browse the repository at this point in the history
  2. chore: temporary dependency

    Signed-off-by: Sergio Schvezov <sergio.schvezov@canonical.com>
    sergiusens authored and tigarmo committed Jul 3, 2024
    Configuration menu
    Copy the full SHA
    f1942fd View commit details
    Browse the repository at this point in the history
  3. feat: add a method to enable craft-parts Features (#362)

    The correct location to add craft-parts Features is a bit tricky:
    
    - it must happen soon enough that things that happen early have the correct
      features enabled. For example, building the default command groups takes
      into account whether overlays are enabled;
    - it must happen late enough that the craft-cli logging support has already
      been set-up.
    
    Therefore, provide a method that Application subclasses can override to enable
    their features, and the Application itself takes care of calling it at the
    correct time.
    tigarmo committed Jul 3, 2024
    Configuration menu
    Copy the full SHA
    9ba1d2a View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    02509d6 View commit details
    Browse the repository at this point in the history
  5. fix: don't raise CraftValidationErrors in validators

    The (new) rule is this: in validators, always raise the types that Pydantic
    expects (ValueErrors, AssertionErrors, TypeError, and subclasses of these).
    This allows Pydantic to capture all errors and group them into a single
    ValidationError, which we can then convert into a single CraftValidationError
    in from_yaml_data(). This provides a more uniform UI for the reporting of
    validation errors on the project.
    tigarmo committed Jul 3, 2024
    Configuration menu
    Copy the full SHA
    04edc9b View commit details
    Browse the repository at this point in the history
  6. fix: normalize validation errors

    Ensure that each error message starts with a lowercase letter.
    tigarmo committed Jul 3, 2024
    Configuration menu
    Copy the full SHA
    da6d517 View commit details
    Browse the repository at this point in the history
  7. fix: use from_yaml_data() for create BuildPlanner

    This way the validation errors get correctly translated and converted into
    CraftValidationErrors.
    tigarmo committed Jul 3, 2024
    Configuration menu
    Copy the full SHA
    aa548ed View commit details
    Browse the repository at this point in the history
  8. feat: add a way to set doc urls for models

    This is mainly used for validation errors: when a CraftBaseModel fails to be
    created due to Pydantic validation errors, the link to that specific model
    class is added to the error message shown to the user.
    tigarmo committed Jul 3, 2024
    Configuration menu
    Copy the full SHA
    495ed86 View commit details
    Browse the repository at this point in the history
  9. fix: ensure provider is available before launching

    Signed-off-by: Claudio Matsuoka <claudio.matsuoka@canonical.com>
    cmatsuoka authored and tigarmo committed Jul 3, 2024
    Configuration menu
    Copy the full SHA
    6b7284f View commit details
    Browse the repository at this point in the history
  10. build(deps): use proper versions for -cli and -parts

    Now that the 'rockcraft' work branch has been merged and released we can fix
    the version constraint for craft-cli and craft-parts.
    tigarmo committed Jul 3, 2024
    Configuration menu
    Copy the full SHA
    ccfe498 View commit details
    Browse the repository at this point in the history

Commits on Jul 4, 2024

  1. ci: add workflow to automate releases

    This workflow is similar to starbase's current one, with a few differences:
    
    - It uses self-hosted runners;
    - It uses Trusted Publishers to publish to PyPI;
    - It constrains the artifacts that are attached to the GH release.
    tigarmo committed Jul 4, 2024
    Configuration menu
    Copy the full SHA
    0115c28 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    69cd16b View commit details
    Browse the repository at this point in the history
  3. ci: fix checkout of tag in release workflow

    This is a partial revert of 0115c28; apparently actions/checkout's
    "fetch-tags" property is broken and gives errors at checkout time.
    
    Ref: actions/checkout#1467
    tigarmo committed Jul 4, 2024
    Configuration menu
    Copy the full SHA
    1d60b50 View commit details
    Browse the repository at this point in the history
  4. chore(merge): merge '2.9.0'

    tigarmo committed Jul 4, 2024
    Configuration menu
    Copy the full SHA
    42fc135 View commit details
    Browse the repository at this point in the history

Commits on Jul 5, 2024

  1. chore: merge 'origin/main'

    tigarmo committed Jul 5, 2024
    Configuration menu
    Copy the full SHA
    ccffe6f View commit details
    Browse the repository at this point in the history