diff --git a/jest.config.mjs b/jest.config.mjs index baa0673ec4..7703abc37d 100644 --- a/jest.config.mjs +++ b/jest.config.mjs @@ -35,7 +35,7 @@ const config = { // quickly run out of control, and make everything very, very slow.) maxConcurrency: Math.max(Math.min(cpus().length - 1, 4), 2), // When in Continuous Integration, allow double the default test timeout (assuming "frugal" runner type) - testTimeout: env.CI === 'true' ? 10_000 : undefined, + testTimeout: env.CI === 'true' ? 30_000 : undefined, }; /** diff --git a/superchain/Dockerfile b/superchain/Dockerfile index fc226e7704..f263a7465e 100644 --- a/superchain/Dockerfile +++ b/superchain/Dockerfile @@ -219,6 +219,17 @@ RUN apt-key add /tmp/nodesource.asc && rm /tmp/nodesource.asc RUN pip install aws-sam-cli \ && sam --version +# Install Amazon SSM agent (allows debugging of builds via `codebuild-breakpoint`, https://go.aws/3TVW7vL) +RUN apt-get update \ + && apt-get -y install curl \ + && curl -fSsL "https://s3.amazonaws.com/ec2-downloads-windows/SSMAgent/latest/debian_${TARGETPLATFORM#linux/}/amazon-ssm-agent.deb" \ + -o /tmp/amazon-ssm-agent.deb \ + && dpkg -i /tmp/amazon-ssm-agent.deb \ + && systemctl enable amazon-ssm-agent \ + && rm -rf /var/lib/apt/lists/* +COPY --chown=superchain:superchain superchain/amazon-ssm-agent.json /etc/amazon/ssm/amazon-ssm-agent.json + + # Install some configuration COPY superchain/ssh_config /root/.ssh/config RUN chmod 600 /root/.ssh/config diff --git a/superchain/amazon-ssm-agent.json b/superchain/amazon-ssm-agent.json new file mode 100644 index 0000000000..acb8c83e1d --- /dev/null +++ b/superchain/amazon-ssm-agent.json @@ -0,0 +1,45 @@ +{ + "Profile":{ + "ShareCreds" : true, + "ShareProfile" : "" + }, + "Mds": { + "CommandWorkersLimit" : 5, + "StopTimeoutMillis" : 20000, + "Endpoint": "", + "CommandRetryLimit": 15 + }, + "Ssm": { + "Endpoint": "", + "HealthFrequencyMinutes": 5, + "CustomInventoryDefaultLocation" : "", + "AssociationLogsRetentionDurationHours" : 24, + "RunCommandLogsRetentionDurationHours" : 336, + "SessionLogsRetentionDurationHours" : 336 + }, + "Mgs": { + "Region": "", + "Endpoint": "", + "StopTimeoutMillis" : 20000, + "SessionWorkersLimit" : 1000 + }, + "Agent": { + "Region": "", + "OrchestrationRootDir": "", + "ContainerMode": true + }, + "Os": { + "Lang": "en-US", + "Name": "", + "Version": "1" + }, + "S3": { + "Endpoint": "", + "Region": "", + "LogBucket":"", + "LogKey":"" + }, + "Kms": { + "Endpoint": "" + } +}