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

R3SOL-368 Move ledger flow code from components into a new library #6353

Draft
wants to merge 10 commits into
base: release/os/5.3
Choose a base branch
from

Conversation

williamvigorr3
Copy link
Contributor

No description provided.

@williamvigorr3 williamvigorr3 force-pushed the WillV/R3SOL-368-Extract-Ledger-Lib branch from ac9b06e to c36fb62 Compare October 1, 2024 08:14
@corda-jenkins-ci02
Copy link
Contributor

corda-jenkins-ci02 bot commented Oct 1, 2024

Jenkins build for PR 6353 build 12

Build Successful:
Jar artifact version produced by this PR: 5.3.0.0-alpha-1728642749233
Helm chart version produced by this PR: 5.3.0-alpha.1728642749233
Helm chart pushed to: oci://corda-os-docker-dev.software.r3.com/helm-charts/pr-6353/corda
Helm chart Polaris score: 82

Copy link
Contributor

Choose a reason for hiding this comment

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

Why do all those impl packages now need package-info files? Exporting an impl is usually a smell...

Copy link
Contributor Author

@williamvigorr3 williamvigorr3 Oct 8, 2024

Choose a reason for hiding this comment

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

If I don't export these then I get the following error (so it looks like the exports are needed by the ledger flow tests):

> Task :components:ledger:ledger-utxo-flow:resolve FAILED
Resolution failed. Capabilities satisfying the following requirements could not be found:
    [<<INITIAL>>]
      ⇒ osgi.identity: (osgi.identity=ledger-utxo-flow-tests)
          ⇒ [ledger-utxo-flow-tests version=5.3.0.0-SNAPSHOT]
              ⇒ osgi.wiring.package: (osgi.wiring.package=net.corda.ledger.lib.utxo.flow.impl.timewindow)

These were exported in their original location (except libs/ledger-lib-utxo-flow/src/main/java/net/corda/ledger/lib/utxo/flow/impl/transaction/factory/impl/package-info.java I'll try and work out why I needed to export that).

For example:

https://github.com/corda/corda-runtime-os/blob/release/os/5.3/components/ledger/ledger-utxo-flow/src/main/java/net/corda/ledger/utxo/flow/impl/persistence/package-info.java

Copy link
Contributor

Choose a reason for hiding this comment

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

iirc, when we exported an impl it was to get an integration test to work or something like that.

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 can't get the tests to resolve without libs/ledger-lib-utxo-flow/src/main/java/net/corda/ledger/lib/utxo/flow/impl/transaction/factory/impl/package-info.java (as well).

@lankydan
Copy link
Contributor

lankydan commented Oct 8, 2024

Nothing has jumped out to me as being wrong when i reviewed the diff, will take a closer look though.

Copy link

sonarcloud bot commented Oct 11, 2024

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