Page MenuHomePhabricator

Translation updates blocker for WS Export
Closed, ResolvedPublic1 Estimated Story Points

Description

wikisource

In Command.php line 166:
                                                                               
  The command "cd 'wsexport'; git add .; if ! git diff --cached --quiet; then  
   git commit -m 'Localisation updates from https://translatewiki.net.'; git   
  rebase 'origin/main' && git push origin 'main'; fi" failed.                  
                                                                               
  Exit Code: 1(General error)                                                  
                                                                               
  Working directory: /scratch/exports                                          
                                                                               
  Output:                                                                      
  ================                                                             
  [main 89383d6] Localisation updates from https://translatewiki.net.          
   1 file changed, 7 insertions(+), 1 deletion(-)                              
  Current branch main is up to date.                                           
                                                                               
                                                                               
  Error Output:                                                                
  ================                                                             
  remote: error: GH006: Protected branch update failed for refs/heads/main.    
                                                                               
  remote: error: Changes must be made through a pull request.                  
  To github.com:wikimedia/ws-export.git                                        
   ! [remote rejected] main -> main (protected branch hook declined)           
  error: failed to push some refs to 'github.com:wikimedia/ws-export.git'      
                                                                               

commit [--variant VARIANT] [--filter FILTER] [--backport-branch BACKPORT-BRANCH] [--] <project>

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

Is this something that needs to be fixed on the wsexport side?

You need to give sufficient permission for out bot to push translation updates. We also support pull requests, but you need to give us a branch where we can push and create pull request from. You also need to merge the pull requests manually.

Ah, I was looking at the permissions for the translatewiki user; but actually it was the branch protection rule that was breaking it! I've removed that now — does it work again?

Sorry about this!

Unless someone does a manual test, we can check if the next automatic export works. That's on Thursday.

Nikerabbit set the point value for this task to 1.Aug 29 2023, 11:08 AM
Nikerabbit claimed this task.

Blocker has been removed:

wikisource
cd 'wsexport'; git add .; if ! git diff --cached --quiet; then git commit -m 'Localisation updates from https://translatewiki.net.'; git rebase 'origin/main' && git push origin 'main'; fi
[main d034363] Localisation updates from https://translatewiki.net.
 1 file changed, 7 insertions(+), 1 deletion(-)
Current branch main is up to date.
remote: 
remote: GitHub found 1 vulnerability on wikimedia/ws-export's default branch (1 moderate). To find out more, visit:        
remote:      https://github.com/wikimedia/ws-export/security/dependabot/19        
remote: 
To github.com:wikimedia/ws-export.git
   5340b77..d034363  main -> main

Thank you!