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

[MRELEASE-1154] Never fail for unresolvable version expressions #230

Conversation

kwin
Copy link
Member

@kwin kwin commented Aug 27, 2024

expressions

Following this checklist to help us incorporate your
contribution quickly and easily:

  • Make sure there is a JIRA issue filed
    for the change (usually before you start working on it). Trivial changes like typos do not
    require a JIRA issue. Your pull request should address just this issue, without
    pulling in other changes.
  • Each commit in the pull request should have a meaningful subject line and body.
  • Format the pull request title like [MRELEASE-XXX] - Fixes bug in ApproximateQuantiles,
    where you replace MRELEASE-XXX with the appropriate JIRA issue. Best practice
    is to use the JIRA issue title in the pull request title and in the first line of the
    commit message.
  • Write a pull request description that is detailed enough to understand what the pull request does, how, and why.
  • Run mvn clean verify -Prun-its to make sure basic checks pass. A more thorough check will
    be performed on your pull request automatically.

If your pull request is about ~20 lines of code you don't need to sign an
Individual Contributor License Agreement if you are unsure
please ask on the developers list.

To make clear that you license your contribution under
the Apache License Version 2.0, January 2004
you have to acknowledge this by using the following check-box.

@kwin kwin changed the title [MRELEASE-1154] Improve exception message for unresolvable version [MRELEASE-1154] Never fail for unresolvable version expressions Aug 28, 2024
@kwin kwin marked this pull request as ready for review August 28, 2024 09:36
@michael-o michael-o self-requested a review August 28, 2024 09:38
} else {
// artifact not related to current release
// the expression used to define the version of this artifact may be inherited
logInfo(
Copy link
Member Author

Choose a reason for hiding this comment

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

maybe logWarn is actually better here.

Copy link

Choose a reason for hiding this comment

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

We need to take into account the fact that modelVersion 4.1.0 will allow users to only define the version in the root parent, all other versions will be inferred. I would not want tons of warnings when using such setup.
If this is a supported use case, I don't see why a warning would be legit.

@michael-o
Copy link
Member

Alternative to #229.

@michael-o michael-o requested a review from gnodet August 31, 2024 09:35
@kwin
Copy link
Member Author

kwin commented Sep 22, 2024

Any more feedback? I would like to merge this in order to fix the underlying regression.

@michael-o
Copy link
Member

Any more feedback? I would like to merge this in order to fix the underlying regression.

Will pick up tomorrow

Copy link
Member

@michael-o michael-o left a comment

Choose a reason for hiding this comment

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

Hard to tell, honestly. The CI friendy part is implemented half-heartedly and it breaks stuff. I, personally, don't understand the fuzz and the artificial complexity around the CI friendly stuff, but it should be complete or none AND not break other stuff.

@slawekjaranowski @cstamas @gnodet Any opinion?

While I prefer #229, I can live with this one.

Copy link

@gnodet gnodet left a comment

Choose a reason for hiding this comment

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

LGTM

@kwin kwin merged commit e2745ed into master Sep 24, 2024
51 checks passed
@kwin kwin deleted the feature/improve-exception-message-for-unresolvable-version-expressions branch September 24, 2024 08:04
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.

3 participants