lp:rt/5.0 has import errors from github

Asked by sunnavy

I noticed that 2 branches are marked as "Branch has errors" on https://code.launchpad.net/rt.

It seems that rt/5.0 hasn't been synced for months: the last commit on github(https://github.com/bestpractical/rt) was created today(2024-05-02), but launchpad only has 6aa4d26ec97d4a9f8b03d0ce680079aaeedae811 that was created on 2023-11-21.

I can't find related error logs, could you help?

Thanks!
sunnavy

Question information

Language:
English Edit question
Status:
Solved
For:
Launchpad itself Edit question
Assignee:
No assignee Edit question
Solved by:
sunnavy
Solved:
Last query:
Last reply:
Revision history for this message
Clinton Fung (clinton-fung) said :
#1

The same issue affecting our mail delivery is probably affecting code imports. It doesn't explain why this hasn't updated in months, since the issue in our environment is only today.

I suggest waiting for this issue to be resolved (teams are working on it as we speak) and then we can investigate further.

Apologies for the inconvenience!

Revision history for this message
Guruprasad (lgp171188) said :
#2

Hi, the code imports from an external Git repository to Bzr on Launchpad not working is a known issue that we are aware of, but haven't been able to get to till now. A potential workaround would be to try to set up a Git-to-Git code import for the same external repository on Launchpad. If you have automation, tooling, or recipes using the current bzr branches, those will have to be updated to use the Git repository instead.

Revision history for this message
sunnavy (sunnavy) said :
#3

Thanks! If it can't be fixed soon, I'll plan to set up a Git-to-Git code import.

-sunnavy

Revision history for this message
Ines Almeida (ines-almeida) said :
#4

It's not in our current plans to fix this issue any time soon. I believe there should be already an open bug report for this - if not, I'll simply open one.

I will mark this question as answered - feel free to re-open it if you get issues with the Git-to-Git import.

Revision history for this message
sunnavy (sunnavy) said :
#5

I've tried Git-to-Git import, which itself was successful.

Then I tried to import launchpad's git https://git.launchpad.net/rt,branch=stable to bzr and got the same unsuccessful message:

    Updating branch...
    Launchpad is processing new changes to this branch which will be available in a few minutes. Reload to see the changes.

Correct me if I missed something, assuming I still need to import Git to Bzr for the "Translations" feature, is there a workaround?

Thanks!
-sunnavy

Revision history for this message
Ines Almeida (ines-almeida) said :
#6

Indeed it should be Bzr for translations. I think the work around is indeed to import to Bzr.

We will add it to our backlog to look into why that import hasn't been possible lately - though we won't be able to look into it within the next few days.

I'm sorry that I'm not able to give you a good timely solution.

Revision history for this message
sunnavy (sunnavy) said :
#7

No problem, I'll wait for a few more weeks.

Thanks!
-sunnavy

Revision history for this message
Guruprasad (lgp171188) said :
#8

Hi sunnavy, we identified one issue related to this bug and fixed it. After that, I can see that https://code.launchpad.net/~bestpractical/rt/5.0 is now updating properly and has pulled in the recent changes.

Revision history for this message
sunnavy (sunnavy) said :
#9

Hi Guruprasad

That's awesome, thank you very much!

I noticed that there was still something wrong with https://code.launchpad.net/~bestpractical/rt/master, I thought it was caused by external git repo, so I changed it to use launchpad's git repo yesterday, but it doesn't seem to be helpful. It'll be perfect if rt/master can be fixed too.

Thanks again!

Regards
sunnavy

Revision history for this message
Guruprasad (lgp171188) said :
#10

Hi sunnavy, one workaround for the stuck branch issue that we have noticed is that whenever the upstream source of the code import has new commits after our fixes 2 days ago, the mirrored branch automatically gets unstuck and updates properly.

So if and when there are changes to the master branch of https://git.launchpad.net/rt, I believe the code import should get unstuck.

We are still investigating to see if we can force the update without depending on the upstream source to get new commits.

Revision history for this message
Guruprasad (lgp171188) said :
#11

Hi sunnavy, I have managed to fix the https://code.launchpad.net/~bestpractical/rt/master branch as well now. I also noticed that you had added new changes to the upstream branch for the import to get unstuck. Those changes are also imported now.

Revision history for this message
sunnavy (sunnavy) said :
#12

Hi Guruprasad

That's great! Thank you very much!

Regards
sunnavy