Skip to content

test(scale): remove broken branch.diff_data call - #10144

Merged
saltas888 merged 2 commits into
developfrom
dsa-06082026-scale-test-get-diff-tree
Aug 11, 2026
Merged

test(scale): remove broken branch.diff_data call#10144
saltas888 merged 2 commits into
developfrom
dsa-06082026-scale-test-get-diff-tree

Conversation

@saltas888

@saltas888 saltas888 commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

Why

The scale test's diff stager loop calls client.branch.diff_data("DiffTestBranch"), but that SDK method targets GET /api/diff/data, an endpoint removed in #4865, so every call has been silently returning a 404 instead of exercising the diff feature.

This is part of the rework of #8594 as suggested by @ogenstad: the broken diff_data() method is deleted from the SDK without a replacement, nobody can have been using it (opsmill/infrahub-sdk-python#1229).

What changed

  • backend/tests/scale/common/users.py: the diff fetch is removed from the stager loop. It never measured anything (404 since the endpoint was removed), and with diff_data() gone from the SDK there is nothing to call. The closing branch.merge("DiffTestBranch") stays, so the diff stager still exercises the server-side diff/merge path at scale.

No changelog entry, test-infrastructure only.

How to review

The stager loop in the scale test loses its dead diff call, nothing else changes.

Impact & rollout

  • Test infrastructure only, scale tests are not part of regular CI
  • No ordering dependency on the SDK PR, the removed call is gone either way

client.branch.diff_data() targets GET /api/diff/data which no longer
exists, so the diff stager loop has been getting 404s. Use the
GraphQL-based get_diff_tree() instead, which also goes through the
instrumented execute_graphql so locust records the request.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@saltas888
saltas888 requested a review from a team as a code owner August 6, 2026 11:48
@github-actions github-actions Bot added the group/backend Issue related to the backend (API Server, Git Agent) label Aug 6, 2026

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 1 file

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Shadow auto-approve: would auto-approve. Fixes a broken scale test call by switching from a removed REST endpoint to an existing GraphQL method, confined to test infrastructure with no production impact.

Re-trigger cubic

@codspeed-hq

codspeed-hq Bot commented Aug 6, 2026

Copy link
Copy Markdown

Merging this PR will not alter performance

✅ 13 untouched benchmarks


Comparing dsa-06082026-scale-test-get-diff-tree (a8099c1) with develop (9d66528)

Open in CodSpeed

The SDK is deleting the broken branch.diff_data() without a replacement,
so the scale test no longer polls the diff during the loop. The closing
branch merge still exercises the server-side diff at scale.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@saltas888 saltas888 changed the title test(scale): replace broken branch.diff_data call with get_diff_tree test(scale): remove broken branch.diff_data call Aug 11, 2026

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

0 issues found across 1 file (changes from recent commits).

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Shadow auto-approve: would auto-approve. This removes a dead diff_data() call from a scale-test stager loop; the endpoint and SDK method are gone, so the call was a no-op 404 that never measured anything. Test-infrastructure only, no production behavior changes.

Re-trigger cubic

@saltas888
saltas888 merged commit 3413718 into develop Aug 11, 2026
98 of 100 checks passed
@saltas888
saltas888 deleted the dsa-06082026-scale-test-get-diff-tree branch August 11, 2026 09:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

group/backend Issue related to the backend (API Server, Git Agent)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants