Skip to content

Parallelization in AWS codebuild #555

@sridhar562345

Description

@sridhar562345
version: 0.2
batch:
   fast-fail: true
   build-matrix:
      static:
         ignore-failure: false
         env:
            privileged-mode: true
      dynamic:
         env:
            variables:
               WORKERS:
                  - 1
                  - 2
                  - 3
phases:
   pre_build:
      commands:
         - npm install cypress --save-dev
         - yarn run cy:verify
         - yarn run cy:info
         - sysctl fs.inotify.max_user_watches

   build:
      commands:
         - yarn install
         - REACT_APP_SSO_ENABLED=false yarn start & npx wait-on http://localhost:3000
         - yarn run:cypress-parallel-tests

The yarn install command running in each codebuild batch and taking a long time, how can i modify the buildspec to only run this only once and not in all parallel builds?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions