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

As CI team member, I want an easy way to monitor all CI build states #1865

Closed
pulpbot opened this issue Jan 17, 2022 · 2 comments
Closed

As CI team member, I want an easy way to monitor all CI build states #1865

pulpbot opened this issue Jan 17, 2022 · 2 comments
Labels

Comments

@pulpbot
Copy link
Member

pulpbot commented Jan 17, 2022

Author: @fao89 (fao89)

Redmine Issue: 6126, https://pulp.plan.io/issues/6126


For improving our response to broken builds, it would be useful to have an easy way to check the state of all builds.

As PoC:

for REPO in $(http https://api.github.com/orgs/pulp/repos | jq '.[].full_name' | sed 's/"//g')
do
  repo=$(echo $REPO | sed 's/\//%2F/g')
  state=$(http https://api.travis-ci.com/repo/${repo}/builds\?event_type\=cron\&limit\=1 Travis-API-Version:3 'Authorization:token <<PULP_TRAVIS_TOKEN>>' | jq '.builds[].state')
  echo "${REPO} state = ${state}"
done

Reference:

  • github api:
@pulpbot
Copy link
Member Author

pulpbot commented Jan 17, 2022

From: @fao89 (fao89)
Date: 2020-02-10T17:50:19Z


runs by workflow file:
https://api.github.com/repos/fabricio-aguiar/pulp_file/actions/workflows/ci.yaml/runs

@pulpbot
Copy link
Member Author

pulpbot commented Jan 17, 2022

From: @fao89 (fao89)
Date: 2020-02-11T14:39:48Z


Just discovered travis already has a dashboard for it:
https://travis-ci.org/pulp
https://travis-ci.com/pulp

Keeping the story open because I don't know if Github Actions has some dashboard like this

@dralley dralley added Feature and removed New labels Feb 1, 2022
@dralley dralley closed this as completed May 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants