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

Move codestart test in integration-test module #16715

Closed
wants to merge 1 commit into from

Conversation

glefloch
Copy link
Member

This branch moves tests from devtools-testing into integration-test/devtools.

This should fix Snapshot-ci job

@glefloch glefloch requested review from aloubyansky and ia3andy April 22, 2021 08:57
@quarkus-bot quarkus-bot bot added the area/jbang Issues related to when using jbang.dev with Quarkus label Apr 22, 2021
@ia3andy
Copy link
Contributor

ia3andy commented Apr 22, 2021

@glefloch they had been moved on purpose, what is the problem?

@ia3andy
Copy link
Contributor

ia3andy commented Apr 22, 2021

I've added some fixes to those tests here, maybe that also fixes your problem:
#16692

@ia3andy
Copy link
Contributor

ia3andy commented Apr 22, 2021

FYI those tests have been moved there because they are also meant to be moved outside quarkus core when we move the tools out..

@aloubyansky
Copy link
Member

@ia3andy do some tests in devtools rely on the quarkus-bom platform descriptor?

@glefloch
Copy link
Member Author

@ia3andy, yes actually, those jobs fail:

with an error on resolving quarkus-bom:999-SNAPSHOT .

@aloubyansky
Copy link
Member

The problem is that the nightly snapshot builds of the quarkus repo are failing now.

@ia3andy
Copy link
Contributor

ia3andy commented Apr 22, 2021

Then we need to think how to solve that problem, I don't think that moving those tests back there is the solution..

They should not need the bom, I will have a look on why they are using it..

@aloubyansky
Copy link
Member

Now that I'm thinking about it, the registry client dev tools config utility that you moved to the devtools is pre-configured for the quarkus-bom platform. So we need a different platform for the devtools tests.

@glefloch
Copy link
Member Author

It looks like the catalog is needed here:

catalog = QuarkusProjectHelper.getCatalogResolver().resolveExtensionCatalog();

which result with this error:

Caused by: io.quarkus.registry.RegistryResolutionException: Failed to resolve Quarkus extensions catalog io.quarkus:quarkus-bom-quarkus-platform-descriptor:json:999-SNAPSHOT:999-SNAPSHOT
5880
	at io.quarkus.registry.client.maven.MavenPlatformExtensionsResolver.resolvePlatformExtensions(MavenPlatformExtensionsResolver.java:47)
5881
	at io.quarkus.registry.client.RegistryClientDispatcher.resolvePlatformExtensions(RegistryClientDispatcher.java:34)
5882
	at io.quarkus.registry.RegistryExtensionResolver.resolvePlatformExtensions(RegistryExtensionResolver.java:90)
5883
	at io.quarkus.registry.ExtensionCatalogResolver.resolveExtensionCatalog(ExtensionCatalogResolver.java:299)
5884
	at io.quarkus.registry.ExtensionCatalogResolver.resolveExtensionCatalog(ExtensionCatalogResolver.java:254)
5885
	at io.quarkus.devtools.testing.PlatformAwareTestBase.getExtensionsCatalog(PlatformAwareTestBase.java:34)

@ia3andy
Copy link
Contributor

ia3andy commented Apr 22, 2021

It looks like the catalog is needed here:

catalog = QuarkusProjectHelper.getCatalogResolver().resolveExtensionCatalog();

which result with this error:

Caused by: io.quarkus.registry.RegistryResolutionException: Failed to resolve Quarkus extensions catalog io.quarkus:quarkus-bom-quarkus-platform-descriptor:json:999-SNAPSHOT:999-SNAPSHOT
5880
	at io.quarkus.registry.client.maven.MavenPlatformExtensionsResolver.resolvePlatformExtensions(MavenPlatformExtensionsResolver.java:47)
5881
	at io.quarkus.registry.client.RegistryClientDispatcher.resolvePlatformExtensions(RegistryClientDispatcher.java:34)
5882
	at io.quarkus.registry.RegistryExtensionResolver.resolvePlatformExtensions(RegistryExtensionResolver.java:90)
5883
	at io.quarkus.registry.ExtensionCatalogResolver.resolveExtensionCatalog(ExtensionCatalogResolver.java:299)
5884
	at io.quarkus.registry.ExtensionCatalogResolver.resolveExtensionCatalog(ExtensionCatalogResolver.java:254)
5885
	at io.quarkus.devtools.testing.PlatformAwareTestBase.getExtensionsCatalog(PlatformAwareTestBase.java:34)

Yes, I need to change it because in the end, it's not actually using the catalog..

@glefloch
Copy link
Member Author

But as tests generate projects, doesn't codestart needs the catalog underneath ?

@ia3andy
Copy link
Contributor

ia3andy commented Apr 22, 2021 via email

@glefloch
Copy link
Member Author

So I revert this change and try to remove the catalog reference from the base test class?

@ia3andy
Copy link
Contributor

ia3andy commented Apr 22, 2021

@glefloch I am currently doing it no worries ;)

@glefloch
Copy link
Member Author

OK, I close this one then. Thanks!

@glefloch glefloch closed this Apr 22, 2021
@quarkus-bot quarkus-bot bot added the triage/invalid This doesn't seem right label Apr 22, 2021
@glefloch glefloch deleted the fix/move-codestart-test branch April 22, 2021 11:35
@ia3andy
Copy link
Contributor

ia3andy commented Apr 22, 2021

I added this commit 8ad17c9 (#16692) to fix this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/jbang Issues related to when using jbang.dev with Quarkus triage/invalid This doesn't seem right
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants