Skip to content

Fix version check for alpha3 #13242

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

Closed
wants to merge 3 commits into from
Closed

Fix version check for alpha3 #13242

wants to merge 3 commits into from

Conversation

Siedlerchr
Copy link
Member

@Siedlerchr Siedlerchr commented Jun 3, 2025

Closes https://github.com/JabRef/jabref-issue-melting-pot/issues/877

We have dot and a version without a dot between the version number.

Mandatory checks

  • I own the copyright of the code submitted and I license it under the MIT license
  • Change in CHANGELOG.md described in a way that is understandable for the average user (if change is visible to the user)
  • Tests created for changes (if applicable)
  • Manually tested changed features in running JabRef (always required)
  • [/] Screenshots added in PR description (if change is visible to the user)
  • [/] Checked developer's documentation: Is the information available and up to date? If not, I outlined it in this pull request.
  • [/] Checked documentation: Is the information available and up to date? If not, I created an issue at https://github.com/JabRef/user-documentation/issues or, even better, I submitted a pull request to the documentation repository.

@Siedlerchr Siedlerchr added the status: ready-for-review Pull Requests that are ready to be reviewed by the maintainers label Jun 3, 2025
@Siedlerchr Siedlerchr enabled auto-merge June 3, 2025 20:10
Co-authored-by: Subhramit Basu <[email protected]>
Copy link

trag-bot bot commented Jun 3, 2025

@trag-bot didn't find any issues in the code! ✅✨

@@ -306,6 +306,13 @@ void stableShouldNotBeUpdatedToBeta() {
assertFalse(stable.shouldBeUpdatedTo(beta));
}

@Test
void alpha3IsNewerThanAlpha2WithoutDot() {
Version alphaNewer = Version.parse("6.0-alpha.3-2025-04-27--c52dc44");
Copy link
Member

Choose a reason for hiding this comment

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

I don't see a dot

image

Copy link
Member Author

Choose a reason for hiding this comment

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

From your screenshot:
grafik

Copy link
Member Author

Choose a reason for hiding this comment

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

Mabye the issue is obsolete because you fixed gitversion?

Copy link
Member

Choose a reason for hiding this comment

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

Ah, #13093 :)

Copy link
Member

Choose a reason for hiding this comment

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

But then, this PR is not needed, because there is no dot. See #13093 (comment)

@koppor
Copy link
Member

koppor commented Jun 3, 2025

Test:

  1. Close JabRef
  2. Reset all preferences - gradle :jabgui:run --reset (which means: version checking is enabled again)
  3. Start JabRef

Then it should not report that a newer version exists.

@Siedlerchr
Copy link
Member Author

Siedlerchr commented Jun 4, 2025

when running jabgui from gradle you get version 100

@koppor koppor added the dev: binaries Binary builds should be uploaded to builds.jabref.org label Jun 5, 2025
@koppor
Copy link
Member

koppor commented Jun 5, 2025

when running jabgui from gradle you get version 100

Ah, damn it.

Then, we tell the CI to generate a binary.

  1. Close JabRef
  2. Reset all preferences - gradle :jabgui:run --reset (which means: version checking is enabled again)
  3. Download portable edition of the build of this PR (link below)
  4. Start portable edition
  5. Expected: No updated notification

Copy link
Contributor

github-actions bot commented Jun 5, 2025

The build of this PR is available at https://builds.jabref.org/pull/13242/merge.

@Siedlerchr Siedlerchr closed this Jun 5, 2025
auto-merge was automatically disabled June 5, 2025 05:46

Pull request was closed

@koppor koppor deleted the fixVersionCheck branch June 5, 2025 10:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dev: binaries Binary builds should be uploaded to builds.jabref.org status: ready-for-review Pull Requests that are ready to be reviewed by the maintainers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants