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

Can't see our actions from organization repositories #300

Closed
DanielDornhardt opened this issue May 11, 2022 · 10 comments · Fixed by #305
Closed

Can't see our actions from organization repositories #300

DanielDornhardt opened this issue May 11, 2022 · 10 comments · Fixed by #305

Comments

@DanielDornhardt
Copy link

Hello there!

a) this looks and feels really great, software & technology-wise! It feels really clean! Thank you for creating & sharing this!

b) Unfortunately I can't see any of our actions, do you have an Idea what could be going on? I've

  • installed Docker on my Mac (ARM version, but still, that seems to work ok)

  • Started the docker server

  • seems to be running great! (I'll add all screenshots below)

  • I've created my PAT / Personal Access Token

  • Ive installed & started catlight and added the 'cat-light compatible' server as per instructions.

  • I've added the token & chose auth via token.

It all looks good to me, but I can't get any actions to show? The list is empty and nothing seems to be happening when I choose "All"?

-> I'll add some screenshots of catlight & the requests/responses from the docker logs. Maybe you can give me a hint whether I'm doing something wrong?

Additional Info: The actions i'm looking for are in a repository of an organization i'm a member of. Maybe that's an issue? Do I have to get the token somewhere else? Is this supported?

It looks to me that the request to the github's API /builds is happening & successfull but it doesn't return any actions?

Thank you and best wishes

image

image

image

@tsimbalar
Copy link
Owner

Hi @DanielDornhardt
Thanks a lot for the detailed report.

I've observed something similar too, lately ... Up until some months ago, I could properly see all the workflows of all the repos of the organization I'm part of ... yet lately they no longer seem to appear ...

I haven't had the time to look into it, but this issue might be the nudge I needed :) Will take a look

@DanielDornhardt
Copy link
Author

Thank you, you're very welcome! We've gotta keep an eye on our pipelines, they seem to like to become red the moment we look away... 😅

@tsimbalar
Copy link
Owner

I've been taking a look ...

In my case, the weird thing is I can see "some" of the Organization's repos, but not all ..

Looking at this :

const thirtyDaysAgo = new Date();
thirtyDaysAgo.setDate(thirtyDaysAgo.getDate() - 30);
const allRepos = await octokit.paginate(octokit.repos.listForAuthenticatedUser, {
sort: 'full_name',
direction: 'asc',
// ignore things that haven't been updated recently
// for me this allows to go from 200+ repos to ~75
since: thirtyDaysAgo.toISOString(),
});

(which I'm not specially proud of 😬 ), looks like at some point I had put in some filtering so that we only retrieve the Repos "updated in the last 30 days" ... but I never really thought much about what this "updated date" represented ...

I'll try removing this filter and see how it goes 🤞

tsimbalar added a commit that referenced this issue May 11, 2022
…pos - hypothetical fix for #300 (#305)

* fix(repo-list): remove date-based filter for list of repos for a given token

hoping to fix #300

* fix(workflow-runs): increase test timeout
@DanielDornhardt
Copy link
Author

DanielDornhardt commented May 11, 2022

Hi, thank you @tsimbalar - stupid question - will you do a refresh / release of the docker image for this if this works out?

Because I actually don't know how to patch this in... I'd probably have to release my own docker image? I'm just a user in this case 😅 ...

@tsimbalar
Copy link
Owner

oops, I was not expecting to close the issue 😓
I'll re-open, and tell you when a new release is published ...
and then you can follow the steps in https://github.com/tsimbalar/gha-build-monitor#how-to-upgrade to upgrade :)

@tsimbalar tsimbalar reopened this May 11, 2022
@DanielDornhardt
Copy link
Author

Thanks Thibaud! Yeah, as I said, the docs + everything are top notch!

@tsimbalar
Copy link
Owner

tsimbalar commented May 11, 2022

Ok, so version v0.12.0 is out 🎊

If you upgrade, this should fix it 🎊

(I'd suggest you exit Catlight, then upgrade the docker image, then restart Catlight , to avoid any weird caching issues)

@DanielDornhardt
Copy link
Author

Man, that's awesome @tsimbalar ! That was great! It fetched everything & now I can see all the runs!

Unfortunately it's all deep red O_O 🔴 🔴 🔴 but now I - and our team - will always see that immediately!

That's amazing!

Thank you so much!

@DanielDornhardt
Copy link
Author

PS: I've sent you an email, check your spam if you didn't get it.

@DanielDornhardt
Copy link
Author

DanielDornhardt commented Oct 11, 2022 via email

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