Skip to main content
Knowledge Base

Error with empty skip-ci-flag argument

Answer

We're trying to use some of the ecs deploy runner set pieces to update our lambda versions by their s3 object tag. We're using very similar `update_args` as we'd find in our scripts that update our ecs applications: ```bash # Invoke the ECS deploy runner using infrastructure-deployer to commit an update to the terragrunt configuration to # deploy the newly built image. This commit will trigger the infrastructure CI/CD workflow to deploy the image. function deploy_lambda_image { local -r lambda_version="$1" local -r deploy_path="$2" local -r lambda_tag_varname="$3" local -a update_args=(--aws-region "$REGION" --) update_args+=(terraform-applier terraform-update-variable) update_args+=(--git-branch-name "$DEFAULT_INFRA_LIVE_BRANCH") update_args+=(--vars-path "$deploy_path/terragrunt.hcl") update_args+=(--name "$lambda_tag_varname" --value "\"$lambda_version\"") update_args+=(--skip-ci-flag "") (eval infrastructure-deployer "${update_args[@]}") } ``` Something is odd with `skip-ci-flag` I believe. We get this error when the value is empty string: ```ERROR: IndexError: pop from an empty deque``` Once we add some arbitrary string, it works, but in our other scripts, that field is not set. can anyone shed light on what we're missing? Thanks! The error is coming from the python ecs runner invoker lambda. Secondly, when we get past the skip-ci-flag error, it seems that the quotes around our lambda s3 object version are being stripped off. We're investigating whether this could be a script issue on our side...

The `[ci skip]` is a feature [from CircleCI to skip the build](https://circleci.com/docs/2.0/skip-build/). Is that what you what? Do you need to skip the build or not?