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

Bug: Triggering pipeline returns 404; but green on CCI #62

Open
1 task done
RicardoMonteiroSimoes opened this issue Aug 14, 2023 · 4 comments
Open
1 task done
Labels
bug Something isn't working

Comments

@RicardoMonteiroSimoes
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Current behavior

Right now I am changing our CCI setup to trigger through a GH Action. This is to allow us to disable these system tests via a specific label. Now, this appears to be working for anything that runs directly on GH.

Using the action from this repo (Also upgraded manually to 1.1, please refactor the example!), I have changed our config.yml file to check if GH_Action matches. This appears to work; as now the tests don't run, and my new job that checks if it doesn't match runs succesfully:
image

Now my problem is that, the only reason these fail, is because the action itself returns a 404...
image

The action setup is as simple as it gets:

name: Run CircleCi tests
on:
  pull_request:
    types: [opened, synchronize, reopened]
jobs:
  trigger-circleci:
    runs-on: ubuntu-latest
    steps:
      - name: run system tests
        id: cci_system_tests
        uses: CircleCI-Public/[email protected]
        env:
          CCI_TOKEN: ${{ secrets.CIRCLE_CI_TOKEN }}

So I am not entirely sure how this is supposed to work.

Minimum reproduction code

Please see above

Steps to reproduce

No response

Expected behavior

It should correctly trigger the test with the right parameters, so that it can run the tests, and report back in the PR action if they are passing or not.

GitHub Action Version

1.1.0

Other

No response

@RicardoMonteiroSimoes RicardoMonteiroSimoes added the bug Something isn't working label Aug 14, 2023
@RicardoMonteiroSimoes
Copy link
Author

After further researching, the running test on CircleCI is from the old integration, so we can assume that the action itself does not trigger anything at all. But Once I visit the URL from the action, I get no error, just the commit history.

@RicardoMonteiroSimoes
Copy link
Author

I retried it using CURL (or well, a CURL plugin for VSC :P )

POST https://circleci.com/api/v2/project/gh/team/repo/pipeline
Circle-Token: personal_token
content-type: application/json

{
    "branch":"feature/branch",
    "parameters":
    {
        "GHA_Actor":"RicardoMonteiroSimoes",
        "GHA_Action":"cci_system_tests",
        "GHA_Event":"pull_request"
    }
}

And this returns a 201, and starts the tests. So there must be something broken with this action!

@aimuz
Copy link

aimuz commented Feb 3, 2024

having the same problem.

@sergionettl
Copy link

Getting the exact same error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants