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

The bots are now broken, since the git://-protocol is no longer supported #14440

Closed
Snuffleupagus opened this issue Jan 11, 2022 · 9 comments
Closed
Assignees
Labels

Comments

@Snuffleupagus
Copy link
Collaborator

Both of the bots are broken starting today, see the error below, since GitHub has removed support for the git://-protocol; please see https://github.blog/2021-09-01-improving-git-protocol-security-github/#when-are-these-changes-effective

!!! Error executing command:
git clone git://github.com/mozilla/pdf.js.git .
Cloning into '.'...
fatal: remote error: 
  The unauthenticated git protocol on port 9418 is no longer supported.
Please see https://github.blog/2021-09-01-improving-git-protocol-security-github/ for more information.

Based on a cursory look this isn't code originating in https://github.com/mozilla/botio-files-pdfjs, but rather code found in its dependency https://github.com/arturadib/botio

One way to "fix" this would be to implement issue #11851 instead, but given the size/scope of that one we probably need to manually update the bots to allow testing/development to continue working for now.

/cc @brendandahl

@timvandermeij
Copy link
Contributor

I don't really understand how, but the build from just now at #14443 (comment) worked. Maybe the test command is doing something more?

However, looking at https://github.com/arturadib/botio/blob/9434ca0ede20307f7e1d6efa7e9e559240d72f70/lib/module.js#L88 it may just be a matter of changing Botio's configuration files on the bots, since the repository URL is configurable (given that Botio seems to be a more generic bot framework).

On the slightly longer term we should indeed move towards GitHub Actions, but I need to find some time to actually continue with that (since I think we have most if not all pieces of the puzzle by now)...

@Snuffleupagus
Copy link
Collaborator Author

Looking closer at the table linked in #14440 (comment), I believe the the error was temporary to give an advance warning about these changes before they become permanent on March 15 this year.

@timvandermeij
Copy link
Contributor

timvandermeij commented Jan 12, 2022

Good catch! While that does give us some more time to address this, it would already be good to make the (what I assume is a simple) Botio configuration change on both bots to set the repository URL to http://... instead of git://... so we can test if that still works.

@timvandermeij timvandermeij added test and removed other labels Jan 12, 2022
@brendandahl
Copy link
Contributor

The code on the bots is coming from https://github.com/brendandahl/botio.git . Looks like we need to update head_url in a few spots in https://github.com/brendandahl/botio/blob/master/lib/server.js

@brendandahl
Copy link
Contributor

I updated the urls in brendandahl/botio@001c01c.

@Snuffleupagus
Copy link
Collaborator Author

I updated the urls in brendandahl/botio@001c01c.

@brendandahl Were these changes pushed to the bots as well, since it seems that it's now broken again in recent botio runs?

According to https://github.blog/2021-09-01-improving-git-protocol-security-github, support for the git://-protocol was removed today.

@brendandahl
Copy link
Contributor

I did update the bots, I must have missed something in botio.

@brendandahl
Copy link
Contributor

Alright, should be working now. There was something weird with the linux bot using a cached version of botio. Wiping out the modules then npm i corrected it.

I'm not positive the post merge hook will work as expected. We'll need to check it after the next PR merge and ensure gh-pages is also updated.

@Snuffleupagus
Copy link
Collaborator Author

I'm not positive the post merge hook will work as expected. We'll need to check it after the next PR merge and ensure gh-pages is also updated.

That seems to be working just fine, since the gh-pages branch is updating as intended; thanks for fixing this!

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

No branches or pull requests

3 participants