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 horrible situation of current translation effort #3833

Closed
sJJdGG opened this issue Aug 4, 2021 · 22 comments · Fixed by reactjs/translations.react.dev#170
Closed

The horrible situation of current translation effort #3833

sJJdGG opened this issue Aug 4, 2021 · 22 comments · Fixed by reactjs/translations.react.dev#170
Assignees

Comments

@sJJdGG
Copy link
Member

sJJdGG commented Aug 4, 2021

main translation repo is dead.

you can say it by looking at the long list of not handled PRs in the repo

Translation bot is dead. it doesn't push new commits or does not open new PRs. (I think it's due to renaming primary branch name from "master" to "main" in this repo but I'm not sure)

With current efforts for new docs #3308 and the emphasis on translations, it's an issue that at least should be discussed.

I'm the current maintainer of Persian translation effort and volunteering for any task to fix this situation in the upstream.

@gaearon
Copy link
Member

gaearon commented Aug 5, 2021

Hi, thanks for raising this! We know there’s a backlog of issues but we haven’t prioritised them because the old docs are mostly going to be replaced anyway, so all the focus is on getting them into shape that’s ready for a public beta and to start the next wave of translation effort. We expect that to happen in the next couple of months. As soon as we have a branch up and ready, we’ll need to work with the translation maintainers to figure out a strategy forward. But I wouldn’t suggest putting extra energy into translating the current content.

it doesn't push new commits or does not open new PRs. (I think it's due to renaming primary branch name from "master" to "main" in this repo but I'm not sure)

This sounds plausible. We should at least look into this and fix this.

@gaearon
Copy link
Member

gaearon commented Aug 5, 2021

Fix for the bot: reactjs/translations.react.dev#170

I'm not sure how to verify the change so I'll ping @tesseralis who helped set it up!

We'll need the translation repos to do the branch rename too.

@sJJdGG
Copy link
Member Author

sJJdGG commented Aug 6, 2021

Hi @gaearon
Thanks for fix. I think we should wait until next Monday to verify it. This is the scheduled time for translation bot.

And about not putting more effort into the current docs, it's something I really love to do, some other people have put time into translation and opened PRs for it. Not handling them doesn't send the message I like.

I'm already excited for the new docs. From #3308 I understand it's gonna be more interactive and more like a game. I hope I18n is a first class citizen from the start.

@sJJdGG
Copy link
Member Author

sJJdGG commented Aug 12, 2021

Update: The bot still doesn't work, Things have gone worse actually, Updates don't get deployed anymore (also PR deployment previews) and the main site is stale.
@gaearon @rachelnabors @bvaughn

@bvaughn
Copy link
Contributor

bvaughn commented Aug 12, 2021

FWIW I only recently was given admin access to do so, but I went through all of the Vercel configurations this morning and updated them to point to main instead of master.

I don't think this has anything to do with the sync scripts you're referencing though. It looks like those were already updated to use the main branch so I'm not sure why they would be failing. Can you point to a specific PR that's failing as an example?

@rachelnabors
Copy link
Contributor

Hello hello! Following up here, @sJJdGG. We're in a bit of a fix—one of those the person who set this up moved on and the supporting system changed type things. We should know more in a week or two. But in the mean time, to move things along, if you could give @bvaughn a specific PR that's failing, we can continue our sleuthwork

@sJJdGG
Copy link
Member Author

sJJdGG commented Aug 13, 2021

@bvaughn @rachelnabors Hi! You can check it by browsing the tutorial page on Persian site and seeing it's not translated although it's been translated and already merged on main branch.

But Vercel check has already been passed on the main branch which should mean the last last changes have already been deployed!

This malfunctioning behavior started after the merge of reactjs/translations.react.dev#170. I've merged the tutorial page translation just after that. Main site deployments were good before that. So in addition to not having the Bot working, the deployments don't work either.

PR's preview deployments are working right now though. There used to some permission errors with Vercel bot but not anymore.

@bvaughn
Copy link
Contributor

bvaughn commented Aug 13, 2021

Ah. I think there's some confusion.

The most recent commit (from 2 days ago) was successfully built by Vercel and deployed here where you can see the tutorial page is translated properly.

However the docs site at fa.reactjs.org is still hosted on Netlify (not Vercel yet). So it seems like something is wrong with the Netlify configuration.

@bvaughn
Copy link
Contributor

bvaughn commented Aug 13, 2021

Looks like for some reason, the Netlify settings for fa.reactjs.org still pointed to the master branch. Let me change that and see if it fixes things.

In theory, the next time a commit gets pushed to main for that repo, it should deploy to the main fa.reactjs.org site.

I just manually triggered a new deploy to see if it fixes things.

@bvaughn bvaughn closed this as completed Aug 13, 2021
@bvaughn bvaughn reopened this Aug 13, 2021
@bvaughn
Copy link
Contributor

bvaughn commented Aug 13, 2021

It's fixed!
https://fa.reactjs.org/tutorial/tutorial.html

I just went through the 40ish other configurations and updated them too. Hopefully this will all get better soon. Sorry for the trouble!

Thank you for bringing this to our attention, @sJJdGG

@bvaughn bvaughn closed this as completed Aug 13, 2021
@sJJdGG
Copy link
Member Author

sJJdGG commented Aug 13, 2021

Thanks @bvaughn!

Shouldn't we keep the issue open until the synchronizer bot gets fixed?

@bvaughn
Copy link
Contributor

bvaughn commented Aug 13, 2021

Sorry. I didn't realize it was still broken.

Your most recent comment about the bot said:

Update: The bot still doesn't work, Things have gone worse actually, Updates don't get deployed anymore (also PR deployment previews) and the main site is stale.

But updates should now be getting deployed successfully.

What's not working?

@sJJdGG
Copy link
Member Author

sJJdGG commented Aug 14, 2021

The synchronizer bot

It's responsible for pushing new commits from reactjs.org repo to all translation repos.

Right now it's not working and all translation repos are stale and behind this repo.

@bvaughn
Copy link
Contributor

bvaughn commented Aug 15, 2021

I see.

I don't see a reason why that would be the case, looking through the bot's code, but I don't have any context on how or where this bot runs or how to configure it. The project's README doesn't have instructions for how to run or test it. 😅

@bvaughn
Copy link
Contributor

bvaughn commented Aug 15, 2021

I tried running the script locally to see if that revealed anything:

node scripts/sync.js config.json langs/fa.json

It seems to checkout the repo correctly, pull down and merge the upstream changes, but then it fails when it tries to push the changes:

UnhandledPromiseRejectionWarning: HttpError: Bad credentials
at /Users/bvaughn/Documents/git/reactjs.org-translation/node_modules/@octokit/request/dist-node/index.js:86:21
at processTicksAndRejections (internal/process/task_queues.js:97:5)
at async createPullRequest (/Users/bvaughn/Documents/git/reactjs.org-translation/scripts/sync.js:162:7)

Looking at the sync script I can see this is because I don't have a GITHUB_ACCESS_TOKEN env variable defined, so that's not surprising.

That being said, it looks like the bot checks out the translation repos within a local "repo" folder. I wonder if the checkouts just need to be wiped out and recreated or something (after the branch change)?

@bvaughn bvaughn reopened this Aug 15, 2021
@bvaughn
Copy link
Contributor

bvaughn commented Aug 15, 2021

Digging in further, I wonder if the master -> main branch rename was just a coincidence?

I see this error after adding an auth token and re-running the sync script:

remote: Support for password authentication was removed on August 13, 2021. Please use a personal access token instead.
remote: Please see https://github.blog/2020-12-15-token-authentication-requirements-for-git-operations/ for more information.
fatal: unable to access 'https://github.com/reactjs/es.reactjs.org.git/': The requested URL returned error: 403

I'm a little confused by this though, since the script is already using personal access token for auth.

Edit Looks like the script wasn't correctly reading the token from my Zsh profile. After fixing that, I was able to successfully create this PR:
reactjs/fa.react.dev#235

So the script does work (assuming the environment is correctly configured). Why isn't the bot working then?

@sJJdGG
Copy link
Member Author

sJJdGG commented Aug 15, 2021

@bvaughn I'm more clueless than you since I don't have access to anything except our own repo. I just know that the last sync PR was opened on Jul 5 (reactjs/fa.react.dev/pull/226) and so some change must have happened after that and the only suspect was renaming of the main branch in the upstream repo.

@bvaughn
Copy link
Contributor

bvaughn commented Aug 15, 2021

Fair enough.

I'm going to go ahead and run the sync locally (with my user) to create PRs as a temporarily solution to buy some time until we get the underlying problem sorted out.

@bvaughn
Copy link
Contributor

bvaughn commented Aug 16, 2021

Also the translations status page is back up now and being served from a new URL:
https://translations.reactjs.org/

@sJJdGG
Copy link
Member Author

sJJdGG commented Aug 21, 2021

@bvaughn Thank you for the PRs. Let me know if I can be any help

@bvaughn
Copy link
Contributor

bvaughn commented Sep 2, 2021

I've setup a new script and bot for this. Sync PRs were pushed for all translation forks this morning and will run weekly from now on. I'm going to close this issue for now, since (I think) things are taken care of. Let us know if new problems pop up please.

@bvaughn bvaughn closed this as completed Sep 2, 2021
@gaearon
Copy link
Member

gaearon commented Nov 29, 2021

Issue for new doc translations: #4135

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 a pull request may close this issue.

4 participants