Skip to content

fix(intercom): abort archived contact conflicts - #5678

Merged
maheshkutty merged 1 commit into
developfrom
harness/RUD-3345-fix-intercom-abort-archived-con-3df075aa
Oct 15, 2026
Merged

maheshkutty merged 1 commit into
developfrom
harness/RUD-3345-fix-intercom-abort-archived-con-3df075aa

Conversation

@rudder-devbox

@rudder-devbox rudder-devbox Bot commented Oct 15, 2026

Copy link
Copy Markdown
Contributor

What are the changes introduced in this PR?

Narrow Intercom's retryable /contacts 409 handling so archived-contact conflicts preserve status 409 and are terminated by the router. Add deterministic v0 and v1 data-delivery coverage for the archived variant while preserving the existing transient conflict tests.

What is the related Linear task?

Resolves RUD-3345

Please explain the objectives of your changes below

Prevent permanent archived-contact conflicts from retrying for the full router retry window or entering the event-order barrier. Non-archived conflicts remain retryable because they can result from Intercom's eventually consistent contact search index.

Any changes to existing capabilities/behaviour, mention the reason & what are the changes ?

Archived-contact POST /contacts conflicts now fall through as status 409 without retryable stat tags. Other contact conflicts remain status 500/retryable, and all other response handling is unchanged.

Any new dependencies introduced with this change?

N/A

Any new generic utility introduced or modified. Please explain the changes.

N/A

Any technical or performance related pointers to consider with the change?

Detection depends on Intercom including the word archived in an error message. Matching is case-insensitive and scans all error entries to tolerate minor wording and envelope variations.

Validation:

  • npm run lint — passed
  • npm test -- --testPathPattern="intercom" --no-coverage — passed (1 suite, 54 tests)
  • npm run test:ts -- component --destination=intercom — passed (1 suite, 70 tests; archived and ordinary v0/v1 conflict scenarios passed)
  • Full npm run generate:secret-paths with integrations-config — passed; no manifest change
  • Local mini integration verification — skipped because rudder-transformer is SHA-pinned and cannot serve the edited source in this sandbox; stock-image behavior was not claimed as validation

⚠️ Known Issues

  • Live-stack provenance could not be established for this source change because rudder-transformer is SHA-pinned in the local mini stack. Repository-scoped unit and component coverage is green.

Developer checklist

  • My code follows the style guidelines of this project

  • No breaking changes are being introduced.

  • All related docs linked with the PR?

  • All changes manually tested?

  • Any documentation changes needed with this change?

  • Is the PR limited to 10 file changes?

  • Is the PR limited to one linear task?

  • Are relevant unit and component test-cases added in new readability format?

Reviewer checklist

  • Is the type of change in the PR title appropriate as per the changes?

  • Verified that there are no credentials or confidential data exposed with the changes.

@rudder-devbox

rudder-devbox Bot commented Oct 15, 2026

Copy link
Copy Markdown
Contributor Author

👋 I'm rudder-devbox. I opened this PR from a Linear ticket.

Mention @devbox or @rudder-devbox and I'll act on it — on a top-level PR comment,
in a review summary, or on an inline comment on the diff. Without a mention I won't see it.

@coderabbitai

coderabbitai Bot commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration
  • Configuration used: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: ee6edb41-6953-4ec6-91a5-79b302e6a270

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@maheshkutty
maheshkutty marked this pull request as ready for review October 15, 2026 08:52
@maheshkutty
maheshkutty requested review from a team as code owners October 15, 2026 08:52
@sonarqubecloud

Copy link
Copy Markdown

@codecov

codecov Bot commented Oct 15, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.12%. Comparing base (9124525) to head (53d39c1).

Additional details and impacted files
@@           Coverage Diff            @@
##           develop    #5678   +/-   ##
========================================
  Coverage    92.12%   92.12%           
========================================
  Files          713      713           
  Lines        39591    39594    +3     
  Branches      9276     9277    +1     
========================================
+ Hits         36474    36477    +3     
  Misses        2852     2852           
  Partials       265      265           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@maheshkutty
maheshkutty merged commit 5064184 into develop Oct 15, 2026
38 checks passed
@maheshkutty
maheshkutty deleted the harness/RUD-3345-fix-intercom-abort-archived-con-3df075aa branch October 15, 2026 13:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants