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

Question: Best way to get a status badge for a job? #86

Open
epassaro opened this issue May 25, 2022 · 6 comments · May be fixed by #87
Open

Question: Best way to get a status badge for a job? #86

epassaro opened this issue May 25, 2022 · 6 comments · May be fixed by #87

Comments

@epassaro
Copy link
Contributor

I was building a status page for TARDIS and noticed CircleCI does not allow the creation of individual badges for jobs (like GitHub Actions).

Also, shields.io isn't capable of doing that (just filter by branch, not job or workflow).

This makes it difficult to track the state of our code without visiting this repository frequently. I thought about a few ways to achieve this with a certain degree of success, but I feel this is still complicated. For example, I could maintain a new branch on my fork that runs the nightly workflow just for TARDIS.

Any suggestion?

@esc
Copy link
Member

esc commented Jun 2, 2022

I was building a status page for TARDIS and noticed CircleCI does not allow the creation of individual badges for jobs (like GitHub Actions).

Also, shields.io isn't capable of doing that (just filter by branch, not job or workflow).

This makes it difficult to track the state of our code without visiting this repository frequently. I thought about a few ways to achieve this with a certain degree of success, but I feel this is still complicated. For example, I could maintain a new branch on my fork that runs the nightly workflow just for TARDIS.

Any suggestion?

I can't think of anything better than to run this from a fork, with all tests except poliastro disabled. We could then remove poliastro from our suite and you would take responsibility for reporting any issues that Numba's main causes you to us. I think it could work.

@epassaro
Copy link
Contributor Author

epassaro commented Jun 2, 2022

Hi! Thanks for answering.

I've been thinking a lot about this, and now I don't remember any possible solution :/

I've write again soon once I remember what can be done here.

@epassaro
Copy link
Contributor Author

epassaro commented Jun 2, 2022

Just remembered, I think the best way of doing this is to grabbing the status from here:

https://api.github.com/repos/numba/numba-integration-testing/statuses/21989cb59534ab61b7e41ea983f7b66340528273

And make badges through GitHub Actions, JSONbin.org and shields.io.

I don't know if you want to have a general solution for all packages (maybe it's not worth) but I can try something later this week.

@epassaro
Copy link
Contributor Author

epassaro commented Jun 3, 2022

@esc here it is: https://github.com/epassaro/numba-integration-badges

It should be updated 2 hours after the nightly tests run.

This could be easily added to this repo, but requires login to JSONBin on behalf of the org.

@esc
Copy link
Member

esc commented Jun 3, 2022

@esc here it is: https://github.com/epassaro/numba-integration-badges

It should be updated 2 hours after the nightly tests run.

This could be easily added to this repo, but requires login to JSONBin on behalf of the org.

This looks awesome!! I can probably setup a login if need be. Can this be incorporated with a PR to this repo?

@epassaro
Copy link
Contributor Author

epassaro commented Jun 3, 2022

Yes, let me check a few things and I'll open a PR later today.

@epassaro epassaro linked a pull request Jun 5, 2022 that will close this issue
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.

2 participants