I think the most recent atmos release may have bro...
# atmos
j
I think the most recent atmos release may have broken some things. Our pipelines that use the GHA actions are getting this near the end:
Copy code
Error: An error occurred trying to start process '/usr/bin/bash' with working directory '/home/runner/_work/infrastructure/infrastructure/.//home/runner/_work/infrastructure/infrastructure/atmos/components/iam-role-legacy'. No such file or directory
Normalize path separators
sounds suspiciously related to the error I'm seeing there. When I pin it to
0.191.0
it succeeds.
✅ 1
e
Any chance you could share more information such as the command that was being run? What is trying to start bin/bash with that working directory? That to me looks like a problem with the working directory of the GitHub action itself. So not discounting that this is a bug that was introduced, just want to understand how you got there.
Also, if you have more log context, that would be helpful as well.
(and definitely recommend you pin your versions)
j
I'm willing to share, but I just have to be careful not to share company details that my bosses wouldn't be happy getting out there. 😆
This is the job portion of the workflow that is failing:
Copy code
atmos-plan:
    needs: ["atmos-affected"]
    if: ${{ needs.atmos-affected.outputs.has-affected-stacks == 'true' }}
    name: Plan ${{ matrix.stack_slug }}
    env:
      ATMOS_BASE_PATH: "atmos/"
      GITHUB_TOKEN: ${{ github.token }}
    strategy:
      max-parallel: 50
      fail-fast: false # Don't fail fast to avoid locking TF State
      matrix: ${{ fromJson(needs.atmos-affected.outputs.matrix) }}
    concurrency:
      group: ${{ matrix.stack_slug }}
      cancel-in-progress: false
    steps:
      - uses: actions/checkout@v4

      - name: Plan Atmos Component
        uses: cloudposse/github-action-atmos-terraform-plan@v5
        with:
          component: ${{ matrix.component }}
          stack: ${{ matrix.stack }}
          atmos-config-path: ./atmos/
          pr-comment: "true"
The screenshot is from GHA. I think all of that code is from the github-action-atmos-terraform-plan action.
e
I have an idea
i
@Jonathan H I made the fix for plan action https://github.com/cloudposse/github-action-atmos-terraform-plan/releases/tag/v5.2.1 Could you pls try it and confirm that works for you?
👀 1
j
@Igor Rodionov I tried to test this. Unfortunately, it's not getting to the plan step because the
Run cloudposse/github-action-atmos-affected-stacks@v6
step returns no affected stacks, even though I have a change in one of the stacks. It's downloading atmos
v1.192.0
. It's not outputting an error, but it's not finding any changes either so I can't even test the plan step.
Actually that failure to find the changes was due to unrelated changes I'm making. I found one that it does recognize, and both the affected and the plan actions succeeded when using 1.192. Looks good, thanks!
👍 1