konveyor / kantra

A CLI that unifies analysis and transformation capabilities of Konveyor
Apache License 2.0
9 stars 27 forks source link

:bug: look for default rules provider in foundProviders #312

Closed djzager closed 3 months ago

djzager commented 3 months ago

lol. actually tested against a scenario that should work this time 🤦

windup-sample-apps/sample-binaries on î‚  master
➜  ../../kantra/kantra analyze --overwrite --input ./jee-example-app-1.0.0.ear --output foo --source weblogic --target eap7
/opt/homebrew/bin/podman run --rm --name NVRVZjYICsFzXgSx --entrypoint /usr/local/bin/kantra --env RUN_MODE=container quay.io/konveyor/kantra:latest analyze --list-sources/opt/homebrew/bin/podman run --rm --name mtqbnFgCIhwBxxzU --entrypoint /usr/local/bin/kantra --env RUN_MODE=container quay.io/konveyor/kantra:latest analyze --list-targetsXffMylZzahRYbaWZ
xSfjspiLzVlurETj
INFO[0001] starting first provider                       provider=java
/opt/homebrew/bin/podman run -d --rm --name ocNVmWzattuQCQED --network XffMylZzahRYbaWZ -v xSfjspiLzVlurETj:/opt/input/source/jee-example-app-1.0.0.ear quay.io/konveyor/java-external-provider:latest --port=50507Trying to pull quay.io/konveyor/java-external-provider:latest...
Getting image source signatures
Copying blob sha256:7cdc457773a593882a976dd33db61179f62056ca2d69e3f9d3daee3b64482add
Copying blob sha256:44d42298f0986dde5bea2c0f2f4236eae0ab6bbc1f32de2d488a23fbecd40d8d
Copying blob sha256:0c52db48d6f4831ac8670c15a386b94f77127665bed4b0c9b1213682c0a5e977
Copying config sha256:19ae1c6bcda7eee9cb835ab372e457b1711270d10b60d6413ba8fd33e21d31ab
Writing manifest to image destination
aab0b19ec73f0da740b087f3029b3d54d4c452cb08e1521146bf5465366a755a
INFO[0008] running dependency retrieval during analysis
INFO[0008] running source code analysis                  args="--provider-settings=/opt/input/config/settings.json --output-file=/opt/output/output.yaml --context-lines=100 --rules=/opt/rulesets/ --verbose=4 --label-selector=((konveyor.io/target=eap7) && (konveyor.io/source=weblogic)) || (discovery) --dep-label-selector=(!konveyor.io/dep-source=open-source) --dep-output-file=/opt/output/dependencies.yaml" input=/Users/dzager/Workspace/windup-sample-apps/sample-binaries/jee-example-app-1.0.0.ear log=/Users/dzager/Workspace/windup-sample-apps/sample-binaries/foo/analysis.log output=/Users/dzager/Workspace/windup-sample-apps/sample-binaries/foo volumes="{\"/Users/dzager/Workspace/windup-sample-apps/sample-binaries/foo\":\"/opt/output\",\"/var/folders/rm/h4pf5h4j1z39vkywmhyfcgrh0000gn/T/analyze-config-2772959713\":\"/opt/input/config\",\"xSfjspiLzVlurETj\":\"/opt/input/source/jee-example-app-1.0.0.ear\"}"
INFO[0008] generating analysis log in file               file=/Users/dzager/Workspace/windup-sample-apps/sample-binaries/foo/analysis.log
/opt/homebrew/bin/podman run --rm --name ZeWzWhBClzVfiEDT --network container:ocNVmWzattuQCQED --entrypoint /usr/local/bin/konveyor-analyzer -v xSfjspiLzVlurETj:/opt/input/source/jee-example-app-1.0.0.ear -v /Users/dzager/Workspace/windup-sample-apps/sample-binaries/foo:/opt/output -v /var/folders/rm/h4pf5h4j1z39vkywmhyfcgrh0000gn/T/analyze-config-2772959713:/opt/input/config quay.io/konveyor/kantra:latest --provider-settings=/opt/input/config/settings.json --output-file=/opt/output/output.yaml --context-lines=100 --rules=/opt/rulesets/ --verbose=4 --label-selector=((konveyor.io/target=eap7) && (konveyor.io/source=weblogic)) || (discovery) --dep-label-selector=(!konveyor.io/dep-source=open-source) --dep-output-file=/opt/output/dependencies.yamlINFO[0070] generating static report                      args="/usr/local/bin/js-bundle-generator --output-path=/usr/local/static-report/output.js --analysis-output-list=/opt/output/output.yaml --application-name-list=jee-example-app-1.0.0.ear --deps-output-list=/opt/output/dependencies.yaml && cp -r /usr/local/static-report /opt/output" output=/Users/dzager/Workspace/windup-sample-apps/sample-binaries/foo
/opt/homebrew/bin/podman run --rm --name bpYVUTbGrcpevpcY --entrypoint /bin/sh -v /Users/dzager/Workspace/windup-sample-apps/sample-binaries/jee-example-app-1.0.0.ear:/opt/input/source/jee-example-app-1.0.0.ear/jee-example-app-1.0.0.ear -v /Users/dzager/Workspace/windup-sample-apps/sample-binaries/foo:/opt/output quay.io/konveyor/kantra:latest -c /usr/local/bin/js-bundle-generator --output-path=/usr/local/static-report/output.js --analysis-output-list=/opt/output/output.yaml --application-name-list=jee-example-app-1.0.0.ear --deps-output-list=/opt/output/dependencies.yaml && cp -r /usr/local/static-report /opt/outputINFO[0070] Static report created. Access it at this URL:  URL="file:///Users/dzager/Workspace/windup-sample-apps/sample-binaries/foo/static-report/index.html"