Skip to content

Instantly share code, notes, and snippets.

@albertywu
Created January 7, 2021 21:21
Show Gist options
  • Select an option

  • Save albertywu/19e7dd04c73887dade98f71f3886a592 to your computer and use it in GitHub Desktop.

Select an option

Save albertywu/19e7dd04c73887dade98f71f3886a592 to your computer and use it in GitHub Desktop.
#!/bin/bash
# reproduces this failure locally: https://buildkite.com/uber/web-code-runner/builds/3499312#49338f5b-c4e8-4d4b-8b60-c2961f22657f
function docker_login_ecr {
local DOCKER_CREDENTIAL_UBER_REGISTRY="027047743804.dkr.ecr.us-west-1.amazonaws.com"
aws --region=us-west-1 ecr get-login-password | docker login --username AWS --password-stdin $DOCKER_CREDENTIAL_UBER_REGISTRY
}
docker_login_ecr # so we can pull down image from buildkite
# run docker image from failing build locally
docker run it --rm 027047743804.dkr.ecr.us-west-1.amazonaws.com/web-code:802eba48-6a6e-41ea-9122-ebde99817da2 bash
# in docker prompt, run the following commands:
export PACKAGE="src/platform/gss/fractal"
tools/ci/scripts/test-types/lint.sh
@albertywu

albertywu commented Jan 7, 2021

Copy link
Copy Markdown
Author

note: this fixed it:

jazelle idl idl-flow src/platform/gss/fractal

Looks like we have stale idl code on master that may need to be regenerated?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment