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

Catalog and analyze real world occurrences of merge trains #160

Closed
rudymatela opened this issue Aug 18, 2022 · 24 comments
Closed

Catalog and analyze real world occurrences of merge trains #160

rudymatela opened this issue Aug 18, 2022 · 24 comments
Assignees
Labels
investigation Investigation OKR Objectives and Key Results train Involves Merge Trains

Comments

@rudymatela
Copy link

rudymatela commented Aug 18, 2022

... following up from #77

#137 was deployed to @OpsBotPrime. Here we should catalog all real world occurrences of merge trains that happen over the next few days. We should do so by linking to this issue. Then we should go through each to double-check that everything happened as expected.

Any issues that are found should be created separately on Hoff's issue tracker and listed here from most critical to least critical:

In addition to fixing the issues, we can also compute how much waiting time has been reduced.

@rudymatela rudymatela self-assigned this Aug 18, 2022
@rudymatela rudymatela added bug Something isn't working OKR Objectives and Key Results labels Aug 18, 2022
@rudymatela
Copy link
Author

rudymatela commented Aug 18, 2022

⬆️ first (simulated) merge ✔️ (reviewed)

@rudymatela
Copy link
Author

rudymatela commented Aug 18, 2022

⬆️ first (simulated) merge train ✔️ ❌ ✔️ ✔️ (reviewed)

@rudymatela
Copy link
Author

rudymatela commented Aug 18, 2022

⬆️ first merge train ✔️ ✔️ ✔️ (reviewed, 1 issue: #161)

@rudymatela
Copy link
Author

rudymatela commented Aug 18, 2022

⬆️ second merge train ✔️ ✔️ (reviewed)

@rudymatela
Copy link
Author

rudymatela commented Aug 18, 2022

⬆️ third merge train ✔️ ✔️ (reviewed)

@rudymatela
Copy link
Author

rudymatela commented Aug 18, 2022

⬆️ fourth merge train ✔️ ✔️ ✔️ (reviewed)

@rudymatela
Copy link
Author

rudymatela commented Aug 18, 2022

⬆️ fifth merge train. The first on a less busy repository. ✔️ ✔️ (reviewed)

@rudymatela
Copy link
Author

rudymatela commented Aug 18, 2022

⬆️ sixth merge train ✔️ ✔️ ✔️ (reviewed)

@rudymatela
Copy link
Author

rudymatela commented Aug 18, 2022

⬆️ seventh merge train ✔️ ✔️ (reviewed)

@rudymatela rudymatela added the train Involves Merge Trains label Aug 18, 2022
@rudymatela
Copy link
Author

rudymatela commented Aug 18, 2022

⬆️ second simulated merge train 🔴 ✔️ ❗ ✔️ ❌: (reviewed)

  • 🔴 aborted (PR closed)
  • ✔️ build success
  • ❗ rebase failure
  • ✔️ build success
  • ❌ build failure (quick, before others)

Note the id of the PR with rebase failure does not appear when I grep with:

journalctl -Stoday -uhoff | grep "Posted.*S.*ebased as"

So I should update my regex to include rebase failures somehow and review the previous merge trains.

@rudymatela
Copy link
Author

rudymatela commented Aug 18, 2022

Here's how to look for the latest merge trains (and possibly-related) rebase failures:

journalctl -Stoday -uhoff | grep -E "Posted.*(Speculatively rebased as|Failed to rebase)"

... and with colours on PR ids:

journalctl -Stoday -uhoff | grep -E "Posted.*(Speculatively rebased as|Failed to rebase)" | grep -v grep | grep --color -E '(#[0-9]+| [0-9]+: )'

@rudymatela
Copy link
Author

rudymatela commented Aug 19, 2022

⬆️ ninth merge train ✔️ ❗ ✔️ ❌ ✔️ in Hoff repo itself! (reviewed)

@rudymatela
Copy link
Author

rudymatela commented Aug 19, 2022

⬆️ eighth merge train ✔️ ✔️ (reviewed)

@rudymatela
Copy link
Author

rudymatela commented Aug 23, 2022

⬆️ tenth merge train ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ (reviewed)

@rudymatela
Copy link
Author

rudymatela commented Aug 23, 2022

⬆️ eleventh merge train ✔️ ✔️ (reviewed)

@rudymatela
Copy link
Author

rudymatela commented Aug 23, 2022

⬆️ twelfth merge train ✔️ ✔️ (reviewed, 1 issue: #170)

@rudymatela
Copy link
Author

rudymatela commented Aug 23, 2022

⬆️ thirteenth merge train ✔️ ❌ (reviewed)

The behaviour was correct: in the second PR the build was started speculatively, but by the time it finished its base had already been merged into master so it was reported as a real failure.

@rudymatela
Copy link
Author

rudymatela commented Aug 23, 2022

⬆️ fourteenth merge train ✔️ ❌ (reviewed)

@rudymatela
Copy link
Author

rudymatela commented Aug 23, 2022

⬆️ fifteenth merge train ✔️ ✔️ ✔️ ✔️

@rudymatela
Copy link
Author

rudymatela commented Aug 23, 2022

⬆️ sixteenth merge train ✔️ ❌

The second PR failed after the first was merged and the build was successfully reported as (not-speculatively) failed.

@rudymatela
Copy link
Author

rudymatela commented Aug 23, 2022

⬆️ seventeenth merge train ✔️ ✔️

@rudymatela
Copy link
Author

rudymatela commented Aug 23, 2022

⬆️ eighteenth merge train ✔️ ✔️ ✔️ ✔️ ✔️ ✔️

@rudymatela
Copy link
Author

rudymatela commented Aug 23, 2022

⬆️ nineteenth merge train ✔️ ✔️

@rudymatela
Copy link
Author

Nineteen occurrences of merge trains and two issues found so far.

I checked the git history using gitg and everything has been merged correctly and in the correct order.

I am now going to stop actively looking at Hoff's actions and focus on fixing the two issues.

@rudymatela rudymatela added investigation Investigation and removed bug Something isn't working labels Aug 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
investigation Investigation OKR Objectives and Key Results train Involves Merge Trains
Projects
None yet
Development

No branches or pull requests

1 participant