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

Test failures on arm64 #489

Open
jesusaurus opened this issue Apr 18, 2023 · 0 comments
Open

Test failures on arm64 #489

jesusaurus opened this issue Apr 18, 2023 · 0 comments

Comments

@jesusaurus
Copy link

Subject of the issue

When developing on a Mac M1 (arm64), tests fail on the master branch.

Your environment

  • version of org-foramtion: commit 8c572d0
  • versions of node attempted (using nvm): v12.22.12, v14.21.3, v16.20.0, v18.16.0
  • OS: MacOS Monterey (12.6.5)

Steps to reproduce

Clone the repository onto arm64 hardware and run:

nvm install 12
npm ci --no-optional
npm run test

Expected behaviour

All tests should pass.

Actual behaviour

A TypeError always occurs, and a Timeout occurs about 20% of the time:

Summary of all failing tests                                                                                                                                                                                                                                                                                                        
FAIL test/unit-tests/plugin/impl/s3-copy-build-task-plugin.test.ts                                                                                                                                                                                                                                                                  
  ● Test suite failed to run                                                                                                                                                                                                                                                                                                        
                                                                                                                                                                                                                                                                                                                                    
    TypeError: Cannot read property 'split' of undefined                                                                                                                                                                                                                                                                            
                                                                                                                                                                                                                                                                                                                                    
      at Object.string [as parse] (node_modules/aws-sdk/lib/util.js:217:26)                                                                                                                                                                                                                                                         
      at IniLoader.parseFile (node_modules/aws-sdk/lib/shared-ini/ini-loader.js:6:32)                                                                                                                                                                                                                                               
      at IniLoader.loadFrom (node_modules/aws-sdk/lib/shared-ini/ini-loader.js:56:30)                                                                                                                                                                                                                                               
      at getRegion (node_modules/aws-sdk/lib/node_loader.js:118:32)                                                                                                                                                                                                                                                                 
      at Config.region (node_modules/aws-sdk/lib/node_loader.js:173:18)                                                                                                                                                                                                                                                             
      at Config.set (node_modules/aws-sdk/lib/config.js:524:39)                                                                                                                                                                                                                                                                     
      at Config.<anonymous> (node_modules/aws-sdk/lib/config.js:359:12)                                                                                                                                                                                                                                                             
      at Config.each (node_modules/aws-sdk/lib/util.js:520:32)                                                                                                                                                                                                                                                                      
      at new Config (node_modules/aws-sdk/lib/config.js:358:19)                                                                                                                                                                                                                                                                     
      at Object.<anonymous> (node_modules/aws-sdk/lib/node_loader.js:188:14)                                                                                                                                                                                                                                                        
                                                                                                                                                                                                                                                                                                                                    
FAIL test/unit-tests/aws-provider/aws-organization-writer.accounts.test.ts (10.434 s)                                                                                                                                                                                                                                               
  ● when creating a new account using writer › organization create account is called                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                    
    Timeout - Async callback was not invoked within the 5000 ms timeout specified by jest.setTimeout.Error: Timeout - Async callback was not invoked within the 5000 ms timeout specified by jest.setTimeout.                                                                                                                       
                                                                                                                                                                                                                                                                                                                                    
      at mapper (node_modules/jest-jasmine2/build/queueRunner.js:27:45)                                                                                                                                                                                                                                                             
                                                                                                                                                                                                                                                                                                                                    
                                                                                                                                                                                                                                                                                                                                    
Test Suites: 2 failed, 70 passed, 72 total                                                                                                                                                                                                                                                                                          
Tests:       1 failed, 866 passed, 867 total                                                                                                                                                                                                                                                                                        
Snapshots:   0 total                                                                                                                                                                                                                                                                                                                
Time:        10.802 s, estimated 11 s                                                                                                                                                                                                                                                                                               
Ran all test suites matching /unit-test/i.    

Workaround

Move development to amd64 hardware.

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

No branches or pull requests

1 participant