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

Feature/upgrade gradle to 8 #125

Merged
merged 15 commits into from
Sep 15, 2023
Merged

Feature/upgrade gradle to 8 #125

merged 15 commits into from
Sep 15, 2023

Conversation

l-1squared
Copy link
Contributor

No description provided.

@l-1squared l-1squared requested review from klassm and fudler July 28, 2023 11:04
@l-1squared l-1squared force-pushed the feature/upgrade_gradle_to_8 branch 2 times, most recently from f7df931 to 91f91b2 Compare July 28, 2023 12:14
Copy link
Collaborator

@klassm klassm left a comment

Choose a reason for hiding this comment

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

Please also squash commits / bring them a bit into order.


<description>Provides support for navigation between JGiven scenario states.</description>
<change-notes>
The plugin now supports IntelliJ version 2022.2.
</change-notes>
<vendor email="matthias.klass@tngtech.com" url="http://www.tngtech.com">TNG Technology Consulting GmbH</vendor>

<idea-version since-build="163.6110.112"/>
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why did you increase this? Do you know use APIs only available since then?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I guess so. The IntelliJ plugin basicly stated in the build that it would increase the number, and I thought, well, then we can also increase it manually. I'd wager that the change in question was the addition to the constructor

@@ -1,64 +0,0 @@
package com.tngtech.jgiven.reference
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can we make this test work again? Are you sure this test never worked?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It failed on master. I can double check if you want to

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Or to be more precise, it was not exectuted on master, and when I made it, it failed

Copy link
Collaborator

Choose a reason for hiding this comment

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

Still it would be nice to have the test again.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Agree with you. But as I detailed below, I have no working system to Jump off of, and I am not knowledgeable enough to rewrite this test from scratch.

with:
java-version: 11
java-version: 17
distribution: 'adopt'
- name: Build with Gradle
run: ./gradlew buildPlugin test
Copy link
Collaborator

Choose a reason for hiding this comment

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

At least here tests were executed...

Copy link
Contributor Author

Choose a reason for hiding this comment

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

?

Copy link
Collaborator

Choose a reason for hiding this comment

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

./gradlew buildPlugin test

Copy link
Contributor Author

Choose a reason for hiding this comment

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

so, I guess we're again talking about the ScenarioUserProviderTest...
I captured a screenshot from master, to show that this particular test is in fact not picked up:
image

If I annotate with @Test the following happens:
image

I guess we have a bug somewhere in the software responsible for picking up those tests, because one annotation sufficed to activate all four tests.
I tried this with JVM 11 as the backing machine. (JVM -8 seemed to be already incompatible). In any case, the issue with this test is that the LibraryTestUtil cannot find the source code location:
image

My guess is, however, that this is an important part of the test and I have absolutely no idea on how to replicate such a feature. If you can be of any help here, I would greatly appreciate it.

@l-1squared
Copy link
Contributor Author

Please also squash commits / bring them a bit into order.

I would like to ask for some guidance here; I can squash them, but we are doing three somewhat connected updates here so that may not be a good idea. And in my opinion, they are in the order of "update something; try to fix all complaints; update something else". I don't no what kind of order you would prefer.

@klassm
Copy link
Collaborator

klassm commented Aug 1, 2023

I would like to ask for some guidance here; I can squash them, but we are doing three somewhat connected updates here so that may not be a good idea. And in my opinion, they are in the order of "update something; try to fix all complaints; update something else". I don't no what kind of order you would prefer.

Well there are various infrastructure upgrades, that can be grouped. I guess we don't need three commits updating Gradle, do we?
Same goes for the actual implementation - Remove deprecations, Update since field, Update intellij plugin somewhat belong together, don't they? So this is rather not about what the commit is doing than about what the intention is.

@l-1squared
Copy link
Contributor Author

I would like to ask for some guidance here; I can squash them, but we are doing three somewhat connected updates here so that may not be a good idea. And in my opinion, they are in the order of "update something; try to fix all complaints; update something else". I don't no what kind of order you would prefer.

Well there are various infrastructure upgrades, that can be grouped. I guess we don't need three commits updating Gradle, do we? Same goes for the actual implementation - Remove deprecations, Update since field, Update intellij plugin somewhat belong together, don't they? So this is rather not about what the commit is doing than about what the intention is.

The updates are not quite independent though. For instance, the newest intellij Plugin talks about Java 17 requirements and I think the old kotlin version (or was it the old intelliJ plugin) was incompatible with Gradle-8. So I cannot reorder or squash commits partially.

I can, if you wish, squash everything into one commit, and name it "Grand build system refurbishment"

@fudler fudler force-pushed the feature/upgrade_gradle_to_8 branch 2 times, most recently from 4e0bcce to 2d09f77 Compare August 18, 2023 14:45
l-1squared and others added 15 commits August 25, 2023 08:25
According to the docs, the supplier is for a screen reader so I figured that giving the supplier the text value would be helpful.

Signed-off-by: l-1sqared <30831153+l-1squared@users.noreply.github.com>
apparently these tests weren't executed on master but for a reason I don't understand, they are picked up with a newer gradle version.

Signed-off-by: l-1sqared <30831153+l-1squared@users.noreply.github.com>
Signed-off-by: l-1sqared <30831153+l-1squared@users.noreply.github.com>
Signed-off-by: l-1sqared <30831153+l-1squared@users.noreply.github.com>
Signed-off-by: l-1sqared <30831153+l-1squared@users.noreply.github.com>
Signed-off-by: l-1sqared <30831153+l-1squared@users.noreply.github.com>
Signed-off-by: l-1sqared <30831153+l-1squared@users.noreply.github.com>
Signed-off-by: l-1sqared <30831153+l-1squared@users.noreply.github.com>
…anyway

Signed-off-by: l-1sqared <30831153+l-1squared@users.noreply.github.com>
Signed-off-by: l-1sqared <30831153+l-1squared@users.noreply.github.com>
Signed-off-by: l-1sqared <30831153+l-1squared@users.noreply.github.com>
required by IntelliJ anyway.

Signed-off-by: l-1sqared <30831153+l-1squared@users.noreply.github.com>
Signed-off-by: l-1sqared <30831153+l-1squared@users.noreply.github.com>
Signed-off-by: Christian Oertel <christian.oertel@tngtech.com>
Signed-off-by: l-1sqared <30831153+l-1squared@users.noreply.github.com>
According to my (limited) understanding, without adding JGiven as a module the tests depending on it will not function. Therefore, continuing without a library is nonsensical. Furthermore if JGiven is supposed to be present it must be present as a jar (because tha's what we publish), therefore there is no use in trying maybe add Jgiven as a collection of class files (this should only be the case if we were in the same project)

Signed-off-by: l-1sqared <30831153+l-1squared@users.noreply.github.com>
@fudler fudler requested a review from klassm September 1, 2023 13:05
@klassm klassm merged commit 0c0c687 into master Sep 15, 2023
2 checks passed
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.

None yet

3 participants