CS FundamentalsHardProduct-company placement · DevOps
Pull requests A and B each pass CI against main and are merged one after the other, after which main fails to build: A renamed a function that B newly calls. What practice prevents this?
- A. Three separate merge commits, one for each branch, made in the order given
- B. One merge commit with four parents, called an octopus merge
- C. An error, because Git can only ever merge one branch into main at a time
- D. A fast-forward of main to f3, whose history then also contains f1 and f2
Correct answer: B. One merge commit with four parents, called an octopus merge
Each PR was tested against an old main, so their combination (a semantic conflict with no textual conflict) was never built. A merge queue serialises merges and tests the real resulting commit before it lands.
Practise more Software Engineering, Git and Cloud Basics questionsSoftware Engineering, Git and Cloud Basics: notes and key points
More Software Engineering, Git and Cloud Basics questions
- On main you run git merge f1 f2 f3, where the three branches touch different files and none conflict. What results?
- A developer on Windows opens a repository created on Linux, edits one line of a file, and git diff shows every line changed. What is the…
- A product manager ranks 8 candidate requirements with the Analytic Hierarchy Process, comparing every pair once. How many pairwise…
- A team can (A) build a module in-house: 60% chance of gaining ₹50 lakh and 40% chance of losing ₹20 lakh; (B) buy a licence for a certain…
- Usability studies model the share of problems found by n test users as 1 − (1 − L)ⁿ, where L is the probability that one user reveals a…
- Which feature characterises the RAD (Rapid Application Development) model?