-
Notifications
You must be signed in to change notification settings - Fork 565
🌱 Setup PubSub framework code #428
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
Conversation
Integration tests success for ad1438e92e7317bcb6098618f397543bb5f4481a |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a large PR! For large it is recommended to open a WIP, to get early feedback.
@azeemshaikh38 Some documentation on a large PR would help with the review. The approach and your thought process. For example here is HTTP caching PR #203 and some related docs https://github.com/ossf/scorecard#caching I would suggest that some docs be included for review as well as others to contribute in the future. |
Re: large PR comment. Each individual piece didn't make sense on its own, so had to wait to send this out only after all parts were in order. Re: documentation. The PR is based on this comment - #318 (comment). What this is PR trying to achieve is - given a list of repos, "master/main.go" will send out requests to a PubSub topic. To do this, it follows these steps:
I have tried to be as generic as possible to avoid GoogleCloud specific logic. So as much as possible, logic is encapsulated inside gocloud.dev packages. The config/config.go serves a single place to update and use different cloud services if need be. |
Thanks this helps! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like the basic structure. Expect few things that aren't idiomatic go and few nits.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice! some cursory comments. will take a closer look tomorrow.
ad1438e
to
bcabfe7
Compare
Integration tests success for bcabfe7adf47012dd6b67ecee1e165c6ed036a12 |
abba692
to
ac4e29b
Compare
Integration tests success for abba69221dfd6cb60636ce55ad3803929b661a03 |
Integration tests success for ac4e29b049ec43a67be9b1f127e81412878e8a20 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice!
0f01b15
ac4e29b
to
0f01b15
Compare
Integration tests success for 0f01b1501a5f4dad1ef50a5f79edba08e0a82753 |
There is a binary file in this commit https://github.com/ossf/scorecard/blob/0f01b1501a5f4dad1ef50a5f79edba08e0a82753/cron/cron which could be an accidental commit. |
0f01b15
to
3830a10
Compare
Integration tests success for 3830a1089a884df8acb1107d0f71a33cd2fef17d |
3830a10
to
53cdbc7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
putting approval back as a setting change had reset it.
Integration tests success for 53cdbc71e51e7e7186cd4c89bd9e8d828d03bd87 |
Deleted. |
53cdbc7
to
5d3ee50
Compare
Integration tests success for 5d3ee501d9198d8f93d086a2d56893df8fc9b032 |
5d3ee50
to
c892d11
Compare
Integration tests success for c892d11ce339a47b9d6ad04327268d9af4659952 |
Integration tests success for a13ab0e1e39368c0e4e9a1129ace61fdb98ad356 |
What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)
Adds framework/skeleton code for setting up PubSub batch job as discussed in Scale scorecard from 2K to 100K to a million repos #318 (comment). This PR also includes code for Master server which publishes data to the repo_request topic.
What is the current behavior? (You can also link to an open issue here)
N/A
What is the new behavior (if this is a feature change)?
No new behaviour added yet in this PR.
Does this PR introduce a breaking change? (What changes might users need to make in their application due to this PR?)
No.