Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues with this on Flex #12

Open
REPTILEHAUS opened this issue Oct 20, 2022 · 3 comments
Open

Issues with this on Flex #12

REPTILEHAUS opened this issue Oct 20, 2022 · 3 comments

Comments

@REPTILEHAUS
Copy link

I switched to flex env and this doesnt work anymore, service account has app engine admin and deployer privs

ABORTED: Cannot operate on ...../services/default/versions/20221020t065906 because an operation is already in progress for .../services/default/versions/20221020t065906 by 3873bdc6-41c8-47f8-8ad4-4206815a9807.

yaml

    - name: Build
      run: npm install -f && npm run build   
      working-directory: server            

    - uses: 'google-github-actions/auth@v0'
      with:
        workload_identity_provider: 'WIP'
        service_account: 'xxxx.gserviceaccount.com'

    - id: 'deploy'
      name: 'deploy'
      uses: 'google-github-actions/deploy-appengine@v0'
      with:
        deliverables: 'be/app.yaml'
        project_id: 'projectID'
        promote: true

    - name: 'show output'
      run: 'echo ${{ steps.deploy.outputs.url }}'
      
    - id: remove
      name: 'Remove old versions'    
      uses: Reviewable/appengine-remove-action@v2.1.2
      with:
        limit: 0

    - id: test
      name: 'Remove old versions OUTPUTS'       
      run: |
        echo "${{ steps.remove.outputs.versions_deleted }}"
        echo "${{ steps.remove.total_deleted }}"      
@pkaminski
Copy link
Member

We use this action on GAE Flex without problems, so something else must be the cause. It looks like some other operation is still running on an old version, perhaps?

@REPTILEHAUS
Copy link
Author

It worked fine when i was using standard. Im really not sure what other operation could be ongoing, everything is listed above perhaps the deployment has not finished deploying by the time it gets to the remove action step.

is there anyway to ensure that it finishes each step until full completion before proceeding to the next ?

@pkaminski
Copy link
Member

Oh, I just noticed: you can't run the action with limit 0, that will try to delete all the versions, including the current one. Set it to something >= 1 and you should be fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants