-
Notifications
You must be signed in to change notification settings - Fork 66
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
fix(utils.mjs) use the old stats.jenkins.io website (temporarily?) #1890
Conversation
Now it's failing on the Update Center plugins list, most probably due to jenkins-infra/helpdesk#2649
|
|
I'm looking |
in theory you can do |
One last try for me: 5489791 If it does not work, I don't mind anyone pushing on this branch (or doing another PR) to help as it starts to be late here |
does not work: I might have misunderstood the error. But the file in the new UC is strictly the same as the old UC. Only the redirections are differents. I'm letting you folks have a look. Many thanks ❤️ |
I'm unsure if its redirects axios should handle that automatically, that last change didn't help either, this is easy to run locally |
In node.js repl this is what I get which does not look right:
result: {
"FileInfo": {
"Path": "/current/plugin-versions.json",
"Size": 18595440,
"ModTime": "2024-09-11T19:53:20.9436167Z",
"Sha1": "432462f8feffc3db439253c2c1ebe618b7346113",
"Sha256": "9d482e0f77066d7bff52854df41a4ff73fb5967523ddf88fece1020b5bbb1101",
"Md5": "208824be0422f1009c701562c739b003"
},
"IP": "my-ip",
"ClientInfo": {
"CountryCode": "GB",
"ContinentCode": "EU",
"City": "Brighton",
"Country": "United Kingdom",
"Latitude": <redacted>,
"Longitude": <redacted>,
"ASName": "My ISP",
"ASNum": 5089
},
"MirrorList": [
{
"ID": 0,
"Name": "fallback0",
"HttpURL": "https://eastamerica.cloudflare.jenkins.io/",
"RsyncURL": "",
"FtpURL": "",
"SponsorName": "",
"SponsorURL": "",
"SponsorLogoURL": "",
"AdminName": "",
"AdminEmail": "",
"CustomData": "",
"ContinentOnly": false,
"CountryOnly": false,
"ASOnly": false,
"Score": 0,
"Latitude": 0,
"Longitude": 0,
"ContinentCode": "NA",
"CountryCodes": "US",
"ExcludedCountryCodes": "",
"Asnum": 0,
"Comment": "",
"Enabled": false,
"StateSince": "0001-01-01T00:00:00Z",
"Distance": 0,
"ComputedScore": 0,
"LastSync": "0001-01-01T00:00:00Z",
"LastSuccessfulSync": "0001-01-01T00:00:00Z",
"LastModTime": "0001-01-01T00:00:00Z"
}
],
"ExcludedList": [
{
"ID": 1,
"Name": "westeurope",
"HttpURL": "https://westeurope.cloudflare.jenkins.io/",
"RsyncURL": "rsync://updates-jenkins-io-rsyncd.updates-jenkins-io.svc.cluster.local/jenkins/",
"FtpURL": "",
"SponsorName": "westeurope.cloudflare.jenkins.io",
"SponsorURL": "",
"SponsorLogoURL": "",
"AdminName": "jenkins-infra",
"AdminEmail": "[email protected]",
"CustomData": "",
"ContinentOnly": false,
"CountryOnly": false,
"ASOnly": false,
"Score": 0,
"Latitude": 48.8691,
"Longitude": 2.324464,
"ContinentCode": "EU",
"CountryCodes": "FR",
"ExcludedCountryCodes": "",
"Asnum": 13335,
"Comment": "",
"Enabled": true,
"ExcludeReason": "File size mismatch",
"StateSince": "2024-09-11T19:27:57Z",
"Distance": 280.6335,
"ComputedScore": 0,
"LastSync": "2024-09-11T19:56:56Z",
"LastSuccessfulSync": "2024-09-11T19:56:56Z",
"LastModTime": "2024-09-11T19:53:05Z"
},
{
"ID": 2,
"Name": "eastamerica",
"HttpURL": "https://eastamerica.cloudflare.jenkins.io/",
"RsyncURL": "rsync://updates-jenkins-io-rsyncd.updates-jenkins-io.svc.cluster.local/jenkins/",
"FtpURL": "",
"SponsorName": "eastamerica.cloudflare.jenkins.io",
"SponsorURL": "",
"SponsorLogoURL": "",
"AdminName": "jenkins-infra",
"AdminEmail": "[email protected]",
"CustomData": "",
"ContinentOnly": false,
"CountryOnly": false,
"ASOnly": false,
"Score": 0,
"Latitude": 35.221386,
"Longitude": -80.83601,
"ContinentCode": "NA",
"CountryCodes": "US",
"ExcludedCountryCodes": "",
"Asnum": 13335,
"Comment": "",
"Enabled": true,
"ExcludeReason": "File size mismatch",
"StateSince": "2024-09-07T08:18:52Z",
"Distance": 6445.7246,
"ComputedScore": 0,
"LastSync": "2024-09-11T19:57:10Z",
"LastSuccessfulSync": "2024-09-11T19:57:10Z",
"LastModTime": "2024-09-11T19:53:05Z"
}
],
"Fallback": true,
"LocalJSPath": ""
}
|
Reproducible in curl by passing the same headers (roughly, I had 2 drop a couple of compression algorithms as my curl couldn't handle whatever was being sent):
|
Minimised it down to an accept header, if you add an accept header its broken:
I'll leave to you now @dduportal 😄 |
Many thanks @timja ! Got the error, it's in mirrorbits. Incoming fix and I'll report in the Update Center helpdesk issue |
Reported in jenkins-infra/helpdesk#2649 (comment) |
All is green: self merging as hotfix |
Continues from jenkins-infra#1890 Related with jenkins-infra/helpdesk#4265
The plugin site generation fails since jenkins-infra/helpdesk#4265 was applied earlier today.
This PR is a short term fix to use the old stats website, still available through http://old.stats.jenkins.io (and still updated).
These files will have to be served in the new website
cc @lemeurherve @lemeurherveCB @krisstern @MarkEWaite for info