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

Replacing omahaproxy.appspot due to deprecation #2260

Merged
merged 1 commit into from
Mar 6, 2023
Merged

Replacing omahaproxy.appspot due to deprecation #2260

merged 1 commit into from
Mar 6, 2023

Conversation

PF4Public
Copy link
Contributor

Thanks @rany2.

@PF4Public PF4Public requested a review from a team as a code owner March 2, 2023 11:46
Ahrotahn
Ahrotahn previously approved these changes Mar 2, 2023
Copy link
Contributor

@Ahrotahn Ahrotahn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good to me.

The only consideration might be how we select the fraction. I don't have a clue how that could change in the future, but it's possible that ratio might vary more significantly. We'll just have to see what happens.

The results can be ordered, so if that ends up being a problem we could maybe add &order_by=fraction%20desc to the URL and select the first entry:
https://versionhistory.googleapis.com/v1/chrome/platforms/win/channels/stable/versions/all/releases?filter=endtime=none&order_by=fraction%20desc

On a side note, is there any reason for having the check run every six hours? Would it cause problems to have it run more frequently?

@PF4Public
Copy link
Contributor Author

The only consideration might be how we select the fraction. I don't have a clue how that could change in the future, but it's possible that ratio might vary more significantly. We'll just have to see what happens.

The results can be ordered, so if that ends up being a problem we could maybe add &order_by=fraction%20desc to the URL and select the first entry: https://versionhistory.googleapis.com/v1/chrome/platforms/win/channels/stable/versions/all/releases?filter=endtime=none&order_by=fraction%20desc

We all know by now that Google plays on its own rules, so all we can do is just observe and adapt :)

On a side note, is there any reason for having the check run every six hours? Would it cause problems to have it run more frequently?

The value was taken randomly IIRC. I was thinking that if we are to be notified of a new release with the maximum delay of 6 hours, that would be acceptable. Also I had no idea which rate limits are there on omahaproxy, so this value was taken almost randomly. We can try increasing the frequency of the check. Another limiting factor I can think of could be GitHub rate-limiting since there is some logic in issue-creation that pulls GitHub API. Every hour then maybe?

@rany2
Copy link
Member

rany2 commented Mar 2, 2023

The value was taken randomly IIRC

The value was not taken randomly. According to Google's documentation, fraction is the ratio of users who were pushed the update. So if it's 0.9 then 90% of users on the stable channel were/will be sent the update by Google which I think is a good enough metric for it to be "stable."

Edit: It's a sort of A/B testing by Google.

@PF4Public
Copy link
Contributor Author

@rany2 The value I was referring to was 6 hours interval for a check, not the fraction.

@rany2
Copy link
Member

rany2 commented Mar 2, 2023

@PF4Public Ah sorry, I wasn't following very well 😅

@rany2
Copy link
Member

rany2 commented Mar 2, 2023

Would it cause problems to have it run more frequently?

IMO an interval of one hour isn't too abusive. (Both for Github Actions and Google themselves)

Edit: for example Flathub's GA action runs every 30 minutes, so one hour is OK for sure.

@PF4Public PF4Public dismissed stale reviews from networkException and Ahrotahn via b7a0779 March 3, 2023 18:43
@PF4Public
Copy link
Contributor Author

I've changed it to be every hour instead of 6.

Sorry, this dismissed all reviews.

@rany2
Copy link
Member

rany2 commented Mar 3, 2023

P.S. I liked @Ahrotahn's proposal. Not sure if it's too late to switch this to: curl -so- 'https://versionhistory.googleapis.com/v1/chrome/platforms/win/channels/stable/versions/all/releases?filter=endtime=none&order_by=fraction%20desc' | jq -rc '.releases | first | .version'

@PF4Public
Copy link
Contributor Author

@rany2 Why not :) It does not matter, who is filtering :)

@PF4Public
Copy link
Contributor Author

I wonder if there is a desire to make all commits signed? @networkException Was last merged commit a hint or just a random trial?

@networkException
Copy link
Member

I mainly wanted to see if and how it is possible with our workflow. Improved verifiability is definitely something I'd like to advance in the project though

@rany2
Copy link
Member

rany2 commented Mar 5, 2023

Something I'm quite a fan of is the new ssh-based commit signing. Previously I wasn't too invested in signing git commits because I hate GPG but having it use ssh keys instead is very convenient!

@Ahrotahn
Copy link
Contributor

Ahrotahn commented Mar 5, 2023

If I recall correctly, using the squash and merge option in the github web interface will have the commit signed by github's key. That would be an easy way of having the commit verified when you don't mind having only one commit for the PR.

@PF4Public
Copy link
Contributor Author

PF4Public commented Mar 5, 2023

If I recall correctly, using the squash and merge option in the github web interface will have the commit signed by github's key.

… partially signed :)
image

PS: this also requires several commits to squash. Will it work with a single one?

@PF4Public PF4Public merged commit c970d15 into ungoogled-software:master Mar 6, 2023
@Ahrotahn
Copy link
Contributor

I didn't expect the mac releases to be rolled out so slowly. Would it be a good idea to order by the version number instead?

@PF4Public
Copy link
Contributor Author

order by the version number instead

What do you mean?

@rany2
Copy link
Member

rany2 commented Mar 22, 2023

He means like this:

curl -s 'https://versionhistory.googleapis.com/v1/chrome/platforms/win/channels/stable/versions/all/releases?filter=endtime=none' | jq -rc '.releases | .[] | .version' | sort -Vr | head -1

@PF4Public
Copy link
Contributor Author

Will it bring betas in the list?

@rany2
Copy link
Member

rany2 commented Mar 22, 2023

No

@PF4Public
Copy link
Contributor Author

I could do it later today.

@rany2
Copy link
Member

rany2 commented Mar 22, 2023

Just keep in mind -V is a GNU extra, on FreeBSD it behaves differently

@PF4Public
Copy link
Contributor Author

PF4Public commented Mar 22, 2023

Could jq do the sorting then? GitHub runners are definitely Linux though.

@Ahrotahn
Copy link
Contributor

Sorry I should have mentioned that the api can do it! All you would have to do is change order_by=fraction%20desc to order_by=version%20desc in the URL.

@rany2
Copy link
Member

rany2 commented Mar 22, 2023

Sorry I should have mentioned that the api can do it! All you would have to do is change order_by=fraction%20desc to order_by=version%20desc in the URL.

Are you sure it's natural sort?

@rany2
Copy link
Member

rany2 commented Mar 22, 2023

Answering my own question: yes, it is. @PF4Public Just replace fraction with version and it works just fine!

networkException added a commit to networkException/nixpkgs that referenced this pull request Apr 8, 2023
Version information previously available at omahaproxy.appspot.com will
have to be retrieved from versionhistory.googleapis.com in the future.

See https://groups.google.com/a/chromium.org/g/chromium-dev/c/uH-nFrOLWtE/m/PhUj_inyAQAJ
See ungoogled-software/ungoogled-chromium#2260
networkException added a commit to networkException/nixpkgs that referenced this pull request Apr 8, 2023
Version information previously available at omahaproxy.appspot.com will
have to be retrieved from versionhistory.googleapis.com in the future.

See https://groups.google.com/a/chromium.org/g/chromium-dev/c/uH-nFrOLWtE/m/PhUj_inyAQAJ
See ungoogled-software/ungoogled-chromium#2260
networkException added a commit to networkException/nixpkgs that referenced this pull request Apr 13, 2023
Version information previously available at omahaproxy.appspot.com will
have to be retrieved from versionhistory.googleapis.com in the future.

See https://groups.google.com/a/chromium.org/g/chromium-dev/c/uH-nFrOLWtE/m/PhUj_inyAQAJ
See ungoogled-software/ungoogled-chromium#2260
networkException added a commit to networkException/nixpkgs that referenced this pull request Apr 13, 2023
Version information previously available at omahaproxy.appspot.com will
have to be retrieved from versionhistory.googleapis.com in the future.

See https://groups.google.com/a/chromium.org/g/chromium-dev/c/uH-nFrOLWtE/m/PhUj_inyAQAJ
See ungoogled-software/ungoogled-chromium#2260
networkException added a commit to networkException/nixpkgs that referenced this pull request Apr 13, 2023
Version information previously available at omahaproxy.appspot.com will
have to be retrieved from versionhistory.googleapis.com in the future.

See https://groups.google.com/a/chromium.org/g/chromium-dev/c/uH-nFrOLWtE/m/PhUj_inyAQAJ
See ungoogled-software/ungoogled-chromium#2260
networkException added a commit to networkException/nixpkgs that referenced this pull request Apr 14, 2023
Version information previously available at omahaproxy.appspot.com will
have to be retrieved from versionhistory.googleapis.com in the future.

See https://groups.google.com/a/chromium.org/g/chromium-dev/c/uH-nFrOLWtE/m/PhUj_inyAQAJ
See ungoogled-software/ungoogled-chromium#2260
networkException added a commit to networkException/nixpkgs that referenced this pull request Apr 14, 2023
Version information previously available at omahaproxy.appspot.com will
have to be retrieved from versionhistory.googleapis.com in the future.

See https://groups.google.com/a/chromium.org/g/chromium-dev/c/uH-nFrOLWtE/m/PhUj_inyAQAJ
See ungoogled-software/ungoogled-chromium#2260
networkException added a commit to networkException/nixpkgs that referenced this pull request Apr 21, 2023
Version information previously available at omahaproxy.appspot.com will
have to be retrieved from versionhistory.googleapis.com in the future.

See https://groups.google.com/a/chromium.org/g/chromium-dev/c/uH-nFrOLWtE/m/PhUj_inyAQAJ
See ungoogled-software/ungoogled-chromium#2260
networkException added a commit to networkException/nixpkgs that referenced this pull request Apr 21, 2023
Version information previously available at omahaproxy.appspot.com will
have to be retrieved from versionhistory.googleapis.com in the future.

See https://groups.google.com/a/chromium.org/g/chromium-dev/c/uH-nFrOLWtE/m/PhUj_inyAQAJ
See ungoogled-software/ungoogled-chromium#2260
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 this pull request may close these issues.

None yet

4 participants