You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What were you trying to accomplish?
Running the command mvn clean install under a Firewall Restricted Environment with Correct proxy Settings; and getting the Error as cdk.CdkStackTest.testStack() Time elapsed: 0.127 sec <<< FAILURE!
cdk.CdkStackTest.testStack() Time elapsed: 0.127 sec <<< FAILURE!
java.io.UncheckedIOException: java.io.IOException: Cannot run program "node": error=2, No such file or directory
Expected Behavior
As per document of this repo; All Test case should pass with the following command
Firewall Non-Restricted Environment: mvn clean install
Firewall Restricted Environment: mvn clean install -Dhttps.proxyHost=XXXXXXXXX.abc.xyz -Dhttps.proxyPort=8099 -Dhttps.proxyUsername=XXXXXXX -Dhttps.proxyPassword=XXXXXXX [Replace XXXXXXX with your correct credentials]
Current Behavior
All Test Cases to be Passed. All Project Modules and Examples Modules to show "SUCCESS" after running the above mvn command
Possible Solution
At this time, it should be investigated further.
WorkAround Solution: Team to proceed with, the issue Occurring at the line cdk.CdkStackTest.testStack(){App app = new App();}
Please comment the lines, and run the mvn commands. It'll pass all test cases.
Check if you are in the Machine of : Apple M1 Pro(OS : Ventura 13.5)
You are in Firewall Restricted Environment, and run the command : mvn clean install -Dhttps.proxyHost=XXXXXXXX.abc.xyz -Dhttps.proxyPort=8099 -Dhttps.proxyUsername=XXXXXXX -Dhttps.proxyPassword=XXXXXXX
You would see the failures as follows Running cdk.CdkStackTest Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.127 sec <<< FAILURE! cdk.CdkStackTest.testStack() Time elapsed: 0.127 sec <<< FAILURE! java.io.UncheckedIOException: java.io.IOException: Cannot run program "node": error=2, No such file or directory
Environment
Powertools for AWS Lambda (Java) version used: latest master as of August 16, 2023
Packaging format (Layers, Maven/Gradle):: Maven 3.3.9
AWS Lambda function runtime:: Not Applicable
Debugging logs: Running cdk.CdkStackTest Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.127 sec <<< FAILURE! cdk.CdkStackTest.testStack() Time elapsed: 0.127 sec <<< FAILURE! java.io.UncheckedIOException: java.io.IOException: Cannot run program "node": error=2, No such file or directory
The text was updated successfully, but these errors were encountered:
The E2E tests shouldn't run as part of a normal mvn clean install run from the root of the project. Can you confirm exactly how you are running these? They should only fire when you explicitly set the e2e profile (build config)
If you are actively trying to run them to get through the whole test suite, I would suggest ignoring them for now. They build and launch AWS infrastructure, and require AWS account access, the CDK, and the requirements of the CDK - in this case, NodeJS. We run them for you as part of the pull-request process to this repository, and they don't need to be run as part of the normal development workflow.
If you are not trying to run them but they are running anyway, if you can dump the complete output - showing source directory, command, and maven output, we can try and work out what has gone wrong!
Got you @scottgerring . I can ignore as I'm able to proceed with the mentioned WorkAround Solution. As this will run as part of the pull-request, I'm good. Thank you!
Uh oh!
There was an error while loading. Please reload this page.
What were you trying to accomplish?
Running the command mvn clean install under a Firewall Restricted Environment with Correct proxy Settings; and getting the Error as cdk.CdkStackTest.testStack() Time elapsed: 0.127 sec <<< FAILURE!
cdk.CdkStackTest.testStack() Time elapsed: 0.127 sec <<< FAILURE!
java.io.UncheckedIOException: java.io.IOException: Cannot run program "node": error=2, No such file or directory
Expected Behavior
As per document of this repo; All Test case should pass with the following command
Firewall Non-Restricted Environment: mvn clean install
Firewall Restricted Environment: mvn clean install -Dhttps.proxyHost=XXXXXXXXX.abc.xyz -Dhttps.proxyPort=8099 -Dhttps.proxyUsername=XXXXXXX -Dhttps.proxyPassword=XXXXXXX [Replace XXXXXXX with your correct credentials]
Current Behavior
All Test Cases to be Passed. All Project Modules and Examples Modules to show "SUCCESS" after running the above mvn command
Possible Solution
At this time, it should be investigated further.
WorkAround Solution: Team to proceed with, the issue Occurring at the line cdk.CdkStackTest.testStack(){App app = new App();}
Please comment the lines, and run the mvn commands. It'll pass all test cases.
Steps to Reproduce (for bugs)
Running cdk.CdkStackTest Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.127 sec <<< FAILURE! cdk.CdkStackTest.testStack() Time elapsed: 0.127 sec <<< FAILURE! java.io.UncheckedIOException: java.io.IOException: Cannot run program "node": error=2, No such file or directory
Environment
Running cdk.CdkStackTest Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.127 sec <<< FAILURE! cdk.CdkStackTest.testStack() Time elapsed: 0.127 sec <<< FAILURE! java.io.UncheckedIOException: java.io.IOException: Cannot run program "node": error=2, No such file or directory
The text was updated successfully, but these errors were encountered: