Skip to content

circleci-artifacts-redirector-action error #469

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

Closed
jarrodmillman opened this issue Jul 2, 2023 · 6 comments · Fixed by #470
Closed

circleci-artifacts-redirector-action error #469

jarrodmillman opened this issue Jul 2, 2023 · 6 comments · Fixed by #470
Milestone

Comments

@jarrodmillman
Copy link
Member

@larsoner The CircleCI artifact redirector hasn't worked in the last few weeks (it last worked 4 month ago):
https://github.com/numpy/numpydoc/actions/workflows/main.yml?page=2

For example, here
https://github.com/numpy/numpydoc/actions/runs/5392536984/jobs/9791034918
we are getting this error:

Run larsoner/circleci-artifacts-redirector-action@master
  with:
    repo-token: ***
    artifact-path: 0/html/index.html
    circleci-jobs: build_docs
Error: Cannot read properties of undefined (reading 'length')
@stefanv
Copy link
Contributor

stefanv commented Jul 2, 2023

Missing CIRCLECI_TOKEN:

$ cat .github/workflows/main.yml
on: [status]
jobs:
  circleci_artifacts_redirector_job:
    runs-on: ubuntu-latest
    name: Run CircleCI artifacts redirector
    steps:
      - name: GitHub Action step
        uses: larsoner/circleci-artifacts-redirector-action@master
        with:
          repo-token: ${{ secrets.GITHUB_TOKEN }}
          artifact-path: 0/html/index.html
          circleci-jobs: build_docs

@stefanv
Copy link
Contributor

stefanv commented Jul 2, 2023

NetworkX version (working):

Needs, under repo-token:

          api-token: ${{ secrets.CIRCLECI_ARTIFACT_REDIRECTOR_TOKEN }}

@stefanv
Copy link
Contributor

stefanv commented Jul 2, 2023

From the docs:

The api-token needs to be a CircleCI personal API token (not a project token as it is not supported yet in API v2!) whose value has been added to the GitHub secrets of your repository (e.g., as CIRCLE_TOKEN), e.g. for the MNE-Python project this would be https://github.com/mne-tools/mne-python/settings/secrets/actions.

@jarrodmillman
Copy link
Member Author

Thanks @stefanv !! Someone with access for this repo will need to make the update.

@jarrodmillman jarrodmillman added this to the 1.6.0 milestone Jul 2, 2023
@seberg
Copy link
Member

seberg commented Jul 2, 2023

I created a CirceCI token and set the secret, maybe try close/reopen on a PR?

But, since you are the one making releases, etc. we should probably just add @jarrodmillman as an admin for numpydoc. Right now it's just @larsoner (and the numpy owners).

@jarrodmillman
Copy link
Member Author

jarrodmillman commented Jul 2, 2023

@seberg Thanks for taking care of this! Having admin privileges of numpydoc would be helpful.

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

Successfully merging a pull request may close this issue.

3 participants