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

Fix "requires" clauses being ignored #214

Merged
merged 1 commit into from
Feb 3, 2023
Merged

Conversation

melix
Copy link
Member

@melix melix commented Feb 1, 2023

This commit fixes the metadata repository not being used in the TCK. Before, it was assumed that each test was working in isolation, but in practice, #211 showed that it is not the case.

So instead of the TCK figuring out by itself which metadata config to include, and completely ignoring the "requires" clauses, we will now simply configure the tests to use the metadata from the current state of the repository. It makes things easier, at the cost of possible side effects: it is possible that the metadata from a transitive dependency is actually what makes a build pass.

However this drawback should be covered by regular code reviews, as it is unexpected that metadata for a transitive "talks" about the current module under test.

Fixes #211

What does this PR do?

Checklist before merging

  • I have properly formatted metadata files (see CONTRIBUTING document)
  • I have added thorough tests. (see this)

This commit fixes the metadata repository not being used in the TCK.
Before, it was assumed that each test was working in isolation, but
in practice, oracle#211 showed that it is not the case.

So instead of the TCK figuring out by itself which metadata config
to include, and completely ignoring the "requires" clauses, we
will now simply configure the tests to use the metadata from the
current state of the repository. It makes things easier, at the
cost of possible side effects: it is possible that the metadata
from a transitive dependency is actually what makes a build pass.

However this drawback should be covered by regular code reviews,
as it is unexpected that metadata for a transitive "talks" about
the current module under test.

Fixes oracle#211
@melix melix added the bug Something isn't working label Feb 1, 2023
@melix melix requested a review from bclozel February 1, 2023 13:19
@melix melix self-assigned this Feb 1, 2023
@melix melix requested a review from a team as a code owner February 1, 2023 13:19
@melix melix requested a review from msupic February 1, 2023 13:19
Copy link
Collaborator

@bclozel bclozel left a comment

Choose a reason for hiding this comment

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

I've tested this change with #152 (without the workaround) and I confirm that this change makes the native tests pass. Thanks!

@dnestoro dnestoro merged commit bb1671b into oracle:master Feb 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TCK does not use metadata from declared dependencies
3 participants