📁 Sangam Dhakal - Portfolio v2.0 - Netscape Navigator 4.0
_
□
×

📚 Interview question

A teammate's pull requests keep getting rejected or sent back for several rounds of changes, and they're visibly frustrated. Some reviewers are frustrated too. As a senior engineer, how do you handle it?

Covers diagnosing why one developer's PRs keep failing review (unclear expectations, PR size, skill gaps, reviewer behaviour), the private conversation, pairing and early feedback, fixing team-level review norms, and measuring improvement.

Senior Behavioral Advanced code-quality code-review communication engineering-practice mentoring team-leadership

🎯 Key points

  • Gather facts first: read the rejected PRs and comment threads before talking to anyone
  • Separate causes: PR size and timing, unclear standards, real skill gaps, or harsh or inconsistent reviewers
  • Protect psychological safety: early, draft work and questions must feel safe, or people hide work
  • Private, curious one-to-one: their view first, then specific patterns, no blame
  • Shift feedback left: design chat or draft PR before code, pairing on the next ticket
  • Fix the system and reviewer behaviour: written review guide, labelled comments, automated style, kind tone
  • Agree a measurable goal (review rounds, time to merge) and follow up in weeks, not months
  • Involve the manager only if it's a performance or conduct issue, and tell the teammate first

⏱ 30-second answer

I'd treat it as a system problem first and a person problem second, and my aim is to keep review psychologically safe: people should feel safe opening work early and asking questions, otherwise they hide work and the problem grows.

  1. Gather facts: read their last few rejected PRs and the comment threads. Is it PR size, unclear standards, a real skill gap, or reviewers blocking on preference or being harsh?
  2. Talk privately: ask how they see it, then share specific patterns, not judgements.
  3. Shift feedback earlier: a ten-minute design chat or draft PR before they write the code, and pair on the next ticket.
  4. Fix the team side: a written review guide, labelled comments (blocking vs nit), style automated in CI, and a word with any reviewer whose comments are harsh.
  5. Measure review rounds and time to merge, and check in after a few weeks.

The trade-off: pairing costs my time now, but it's cheaper than repeated review cycles and losing a frustrated engineer.

🗣 Full answer (senior)

How I would answer this in an interview

"First I'd get facts before forming an opinion. I'd read their last five or six PRs and the comment threads. I'm looking for the pattern: are the PRs huge and arrive with no prior discussion, so the approach is wrong by the time anyone sees it? Are the comments about real defects, or about personal style that isn't written down anywhere? Are different reviewers asking for contradictory things? Or is there a genuine skill gap, say, around async or EF Core queries? Very often it's a mix, and the reviewers are part of it.

For example, at [company] I had a situation like this with [a mid-level developer who'd joined from a different stack]. I had a private one-to-one, started by asking how they felt reviews were going, and listened. Then I showed two specific patterns I'd seen: large PRs with no description, and the same N+1 query issue coming up three times. We agreed they'd post a short design note or draft PR before writing most of the code, and I paired with them on the next two tickets. On the team side, I noticed one reviewer was blocking on preferences, so I spoke to them privately, and we wrote a one-page review guide with labelled comments and moved style rules into .editorconfig and analysers. Within [six weeks] their review rounds dropped from [about four] to [one or two], and the tension in the team eased.

The principle is to make expectations explicit and get feedback earlier, when it's cheap. The mistake I see is seniors either piling on more review comments, or quietly rewriting the person's code, which fixes the PR and teaches nothing. If it turned out to be a sustained performance issue after real support, I'd involve their manager, but I'd tell the teammate first. Done well, the person ends up reviewing others' code confidently."


Diagnosing the cause

Pattern in the PRs Likely cause What helps
Huge PRs, approach challenged late No early alignment Design chat or draft PR first; split work
Same defect type repeatedly Skill gap in one area Pairing, a worked example, a targeted analyser
Comments are style or taste Unwritten standards, reviewer preference Review guide, .editorconfig, labelled comments
Reviewers contradict each other No shared conventions Agree conventions as a team; one reviewer leads
Harsh or sarcastic comments Reviewer behaviour Private feedback to the reviewer

The conversation

Do Don't
Meet privately, ask their view first Raise it in stand-up or a PR thread
Use specific examples from real PRs Generalise: "your code is always..."
Agree concrete next steps together Hand down a list of rules
Follow up in two to three weeks Assume one chat fixed it

Production example

On a team of seven, one developer averaged four review rounds per PR and about five days to merge. After early design check-ins, two weeks of pairing, a written review guide and moving style checks into CI, their average fell to under two rounds and about a day and a half to merge, and they started reviewing others' PRs within two months.

🔍 What the interviewer is checking

Checks the candidate's people leadership: whether they diagnose fairly, give feedback well, mentor effectively and fix team-level causes.

Green flags

  • Gathers evidence from real PRs before acting
  • Considers reviewer behaviour and unclear standards, not just the author
  • Private, curious, specific conversation
  • Moves feedback earlier and pairs
  • Defines a measurable improvement and follows up

Red flags

  • "They need to raise their standards" with no diagnosis
  • Rewrites the code themselves or escalates immediately
  • Public criticism or blame

📚 Learn in depth

1. Why repeated rejection happens

Repeated review failure is rarely one cause. Common contributors:

 Feedback too late  ->  approach wrong after days of work
 Unwritten rules    ->  author can't hit a target they can't see
 Large PRs          ->  more surface for comments, more rounds
 Skill gap          ->  same defect class repeats
 Reviewer behaviour ->  preferences treated as blockers, harsh tone

The senior's job is to find which ones apply, not assume it's the author.

2. Feedback cost curve

The later feedback arrives, the more it costs to act on and the more it hurts:

Idea -> design note -> draft PR -> full PR -> merged -> production
 cheap <--------------------------------------------> expensive

Moving feedback to the left (a ten-minute chat, a draft PR with just interfaces) prevents most "rewrite this" reviews.

3. Making standards explicit

People can't meet standards that only exist in reviewers' heads. A one-page review guide (priorities, comment labels, response time) plus automated style (.editorconfig, dotnet format, analysers with warnings as errors) turns opinions into visible, consistent rules.

4. Pairing as teaching

Pairing on real tickets transfers tacit knowledge (how to approach a problem, how to test it) that review comments can't. Rotate driver and navigator; let them drive.

5. Psychological safety

Google's Project Aristotle research found psychological safety to be the strongest predictor of team effectiveness. A developer who expects their PRs to be torn apart starts hiding work, opening PRs late and avoiding hard tickets, which makes everything worse.

6. When it is a performance issue

If, after clear expectations and real support, quality doesn't improve, it becomes a manager conversation. Being transparent with the teammate about that step preserves trust.

Try it yourself

  1. Pull review rounds and time to merge per author for your repo over three months (GitHub or Azure DevOps API).
  2. Categorise 30 recent review comments: defect, design, test, style, preference.
  3. Write a one-page review guide and ask the team to edit it.
  4. Offer a draft-PR check-in on the next large ticket and note how many review rounds it takes.
  5. Practise the opening of a one-to-one: a curious question, then one specific example.

💻 Code

Two things that usually come out of this situation: a draft PR used for early feedback, and a review comment rewritten from a blocker into teaching.

// Draft PR, day 1: only the shape, so the approach can be agreed before the work is done.
namespace Orders.Application.Refunds;

public sealed record RefundRequest(Guid OrderId, decimal Amount, string Reason);

public interface IRefundService
{
    // Question for reviewers: should partial refunds be allowed after an invoice is sent?
    Task<RefundResult> RequestAsync(RefundRequest request, CancellationToken ct);
}

public sealed record RefundResult(Guid RefundId, RefundStatus Status);

public enum RefundStatus { Pending, Approved, Rejected }
// A recurring review issue, and the comment written to teach rather than reject.
namespace Orders.Application.Refunds;

public sealed class RefundReport(OrdersDbContext db)
{
    public async Task<IReadOnlyList<RefundRow>> ForMonthAsync(DateOnly month, CancellationToken ct)
    {
        // suggestion (non-blocking, but let's fix before merge if easy): this loads every refund
        // then filters in memory, because AsEnumerable() switches to LINQ to Objects. Moving the
        // Where before ToListAsync lets SQL Server filter. Happy to pair for 15 minutes on it.
        // Example of the pattern: Orders/Reports/InvoiceReport.cs line 40.
        var start = month.ToDateTime(TimeOnly.MinValue);
        var end = start.AddMonths(1);

        return await db.Refunds
            .Where(r => r.CreatedAt >= start && r.CreatedAt < end)
            .Select(r => new RefundRow(r.Id, r.OrderId, r.Amount))
            .ToListAsync(ct);
    }
}

public sealed record RefundRow(Guid Id, Guid OrderId, decimal Amount);

⚠ Common mistakes

  • Mistake: Assuming the author is the problem. Why it is wrong: Reviewers, unwritten standards and late feedback often cause most of the friction. Instead: Read the PR threads and diagnose all causes first.
  • Mistake: Raising it publicly, in stand-up or a PR thread. Why it is wrong: It humiliates the person and makes them defensive. Instead: Have a private one-to-one.
  • Mistake: Treating it as purely technical and ignoring morale. Why it is wrong: A developer who feels judged starts opening PRs late, avoiding hard tickets and disengaging, and the rest of the team learns that review is risky. Reviewers who feel ignored disengage too. Instead: Acknowledge the frustration on both sides, protect relationships, and make early, imperfect work safe to share.
  • Mistake: Rewriting their code yourself to get it merged. Why it is wrong: It fixes one PR, teaches nothing and signals distrust. Instead: Pair, and let them drive.
  • Mistake: Adding even more review comments. Why it is wrong: More late feedback deepens the frustration. Instead: Move feedback earlier with design chats and draft PRs.
  • Mistake: Ignoring a harsh or preference-driven reviewer. Why it is wrong: The problem returns with the next author, and others stop asking that person for review. Instead: Give that reviewer private, specific feedback and agree team norms.
  • Mistake: No follow-up. Why it is wrong: One conversation rarely changes habits. Instead: Agree a measurable goal and check in after two to three weeks.
  • Mistake: Escalating to the manager without telling the teammate. Why it is wrong: It destroys trust. Instead: Be open about the next step if support doesn't work.

🏛 Senior insight: trade-offs

This question is about leverage. A senior engineer's goal isn't to get one PR merged; it's to make the team's review process produce better code and better engineers. That means fixing the system (explicit standards, small PRs, early feedback, respectful review norms) and supporting the individual, while being honest if it becomes a performance issue.

Option When it fits Cost When not to
Private one-to-one Always, first 30 minutes Never skip it
Pairing on next tickets Skill gap or approach misalignment Senior's time for 1–2 weeks Issue is purely reviewer behaviour
Team review guide + automation Standards unclear or inconsistent A few hours Already in place and followed
Feedback to reviewer Harsh or preference-based comments One awkward conversation Comments are fair and kind
Manager involvement No improvement after real support Formal process Before trying support

Measure: review rounds per PR and time to merge for that author and the team, before and after.

🔗 Follow-ups the interviewer may ask

  1. When: Candidate mentions labelled comments or a team review guide. Why: Checks they know what good review practice looks like in detail.
    How to answer

    Good review is about finding real problems and sharing knowledge without slowing the team.

    • What I look for, in order: correctness and edge cases, security and data handling, design and fit with the codebase, tests, then readability and naming. Style is the analyser's job, not mine.
    • How I word it: about the code, not the person, with the reason: "This query runs once per order line, so 500 lines means 500 round trips. Could we load them in one query?"
    • Blocking vs suggestion: I label every comment (blocking, suggestion, nit, question) so the author knows what must change before merge.
    • Receiving: assume good intent, answer every comment, and take long debates to a quick call.

    The trade-off is thoroughness against flow: block only on what matters, and approve with comments for the rest.

  2. When: Candidate says the PRs were too large or arrived with no description. Why: Checks they can coach someone on what a good PR looks like.
    How to answer

    A good pull request is one a reviewer can understand, verify and approve in one sitting.

    • Size: small and focused on one change, ideally under about 400 changed lines. Review quality drops sharply on large diffs, so split refactoring from behaviour change.
    • Description: explain why, not just what: the problem, the approach, how you tested it and any risk or rollout step. Link the work item.
    • Tests: include tests that prove the new behaviour, and make sure CI is green before you ask for review.
    • Self-review: read your own diff in the PR tool first and remove debug code, commented-out code and unrelated changes.

    The trade-off: splitting work into small PRs costs the author a little planning time, but it saves reviewers far more and gets the change merged sooner.

🛠 Real-world problems: how you handle them

Developer's PRs stuck in review rounds, team tension rising
Situation
A [size] .NET team building an order platform. A [mid-level developer, recently joined] had PRs averaging [four] review rounds; they had started saying in retros that review felt personal, and one reviewer had complained about 'low quality'.
Signals
Review rounds and time to merge for that author well above the team median in Azure DevOps analytics; long comment threads; the developer opening PRs late on Fridays to avoid feedback; tension in retros.
Investigation
Read their last six PRs and every comment, categorising each as defect, design, test, style or preference. Found large PRs with no prior discussion, a repeated EF Core client-side evaluation issue, about a third of comments being style or personal preference, and one reviewer whose comments were blunt.
Resolution
Private one-to-one with the developer: their view first, then two specific patterns. Agreed design check-ins or draft PRs for larger tickets and paired on two tickets. Separately gave the blunt reviewer specific feedback. Wrote a one-page review guide with comment labels and moved style rules into `.editorconfig` and analysers in CI.
Prevention
Review guide added to onboarding; time to first review and review rounds shown on the team dashboard; draft PRs encouraged for anything over a day's work; review norms revisited in retros each quarter.

How to tell it (STAR)

**S:** At [company], a [mid-level] developer's PRs were going through about [four] review rounds and they felt reviews were personal, while one reviewer called their work low quality. **T:** As the senior on the team I wanted to fix it fairly and keep both of them engaged. **A:** I read their last six PRs and categorised every comment, which showed big late PRs, a repeated EF Core issue, and a lot of preference comments. I had a private chat with the developer, agreed early design check-ins and paired on two tickets. I gave the reviewer private feedback, and we wrote a review guide and automated style checks. **R:** Within [six weeks] their review rounds dropped to [one or two], time to merge fell from [five days] to [under two], and they were reviewing others' PRs soon after.

↩ Usually asked after

More in Engineering Practice

Last updated 23 Nov 2026.

🌐 Sangam's Webring

⏪ Previous 🏠 Main Next ⏩
💬 Chat with me