Skip to content

cdk.CdkStackTest.testStack() FAILURE for Apple M1 Chip Under Firewall  #1378

Closed
@nilayamkamila

Description

@nilayamkamila

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)

  1. Follow the change suggested here if you are seeing the log4j Issue: mvn install fails in environment that block log4j:2.15.0 & its dependencies from downloading due to security vulnerabilities #1375
  2. Check if you are in the Machine of : Apple M1 Pro(OS : Ventura 13.5)
  3. 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
  4. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Status

    Shipped

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions