Skip to content

feat(telemetry): Push previous errored snapshots - #9022

Open
germangarces wants to merge 9 commits into
mainfrom
telemetry-retry-requests
Open

germangarces wants to merge 9 commits into
mainfrom
telemetry-retry-requests

Conversation

@germangarces

Copy link
Copy Markdown
Member

Thanks for submitting a PR! Please check the boxes below:

  • I have read the Contributing Guide.
  • I have added information to docs/ if required so people know about the feature.
  • I have filled in the "Changes" section below.
  • I have filled in the "How did you test this code" section below.

Changes

  • Adds a new Django model to check the latest pushed snapshot
  • Check the latest pushed snapshot and grab usage data since then
  • Adds basic Retry logic to the POST petition.

Contributes to ENG-652

How did you test this code?

Added tests

@germangarces
germangarces added this pull request to stack #9023 November 19, 2026 16:29
@germangarces
germangarces requested a review from a team as a code owner November 19, 2026 16:29
@germangarces
germangarces requested review from emyller and removed request for a team November 19, 2026 16:29
@vercel

vercel Bot commented Nov 19, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
docs Ready Ready Preview Dec 1, 2026 11:24am UTC
2 Skipped Deployments
Project Deployment Actions Updated
flagsmith-frontend-preview Ignored Ignored Preview Dec 1, 2026 11:24am UTC
flagsmith-frontend-staging Ignored Ignored Preview Dec 1, 2026 11:24am UTC

Request Review

@linear-code

linear-code Bot commented Nov 19, 2026

Copy link
Copy Markdown
Contributor

ENG-652

@github-actions github-actions Bot added the api Issue related to the REST API label Nov 19, 2026
@coderabbitai

coderabbitai Bot commented Nov 19, 2026 •

Copy link
Copy Markdown

Explain Change →

Note

Currently processing new changes in this PR. This may take a few minutes, please wait...

Review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: 8d1567bb-38ca-40aa-b343-d2c249b3aa0b
Commits

Reviewing files that changed from the base of the PR and between 688059a and 6559e21.

Files selected for processing: 8

  • api/telemetry/control_plane/client.py
  • api/telemetry/migrations/0001_add_usage_reporting_state.py
  • api/telemetry/migrations/__init__.py
  • api/telemetry/models.py
  • api/telemetry/services.py
  • api/tests/unit/telemetry/control_plane/test_client.py
  • api/tests/unit/telemetry/test_services.py
  • docs/docs/deployment-self-hosting/observability/_events-catalogue.md

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

@github-actions github-actions Bot added the feature New feature or request label Nov 19, 2026
@github-actions

github-actions Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

Docker builds report

Image Build Status Security report
ghcr.io/flagsmith/flagsmith-e2e:pr-9022 Finished ✅ Skipped
ghcr.io/flagsmith/flagsmith-api-test:pr-9022 Finished ✅ Skipped
ghcr.io/flagsmith/flagsmith-frontend:pr-9022 Finished ✅ Results ✅
ghcr.io/flagsmith/flagsmith:pr-9022 Finished ✅ Results ✅
ghcr.io/flagsmith/flagsmith-private-cloud:pr-9022 Finished ✅ Results ✅

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

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

All reported issues were addressed across 8 files

Reply with feedback, questions, or to request a fix.

Turn on auto-fix | Re-trigger cubic

Comment thread api/telemetry/control_plane/client.py Resolved
Comment thread api/telemetry/services.py Resolved
Comment thread api/telemetry/control_plane/client.py Resolved
Comment thread api/telemetry/control_plane/client.py Resolved

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

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Review completed against the latest diff

Reply with feedback, questions, or to request a fix.

Turn on auto-fix | Re-trigger cubic

Comment thread api/telemetry/control_plane/client.py Resolved
Comment thread api/telemetry/control_plane/client.py Resolved
Comment thread api/telemetry/services.py Resolved
Comment thread api/telemetry/control_plane/client.py Resolved
Comment thread api/telemetry/control_plane/client.py Resolved
Comment thread api/telemetry/control_plane/client.py Resolved
@github-actions

github-actions Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor
✅ private-cloud · depot-ubuntu-latest-16 — run #24011 (attempt 1)

Playwright Test Results (private-cloud - depot-ubuntu-latest-16)

passed  1 passed

Details

stats  1 test across 1 suite
duration  1 minute, 2 seconds
commit  7692ca2
info  🔄 Run: #24011 (attempt 1)

🗂️ Previous results
✅ private-cloud · depot-ubuntu-latest-arm-16 — run #24011 (attempt 1)

Playwright Test Results (private-cloud - depot-ubuntu-latest-arm-16)

passed  6 passed

Details

stats  6 tests across 3 suites
duration  28.8 seconds
commit  7692ca2
info  🔄 Run: #24011 (attempt 1)

✅ oss · depot-ubuntu-latest-arm-16 — run #24011 (attempt 1)

Playwright Test Results (oss - depot-ubuntu-latest-arm-16)

passed  1 passed

Details

stats  1 test across 1 suite
duration  35.4 seconds
commit  7692ca2
info  🔄 Run: #24011 (attempt 1)

✅ oss · depot-ubuntu-latest-arm-16 — run #24012 (attempt 1)

Playwright Test Results (oss - depot-ubuntu-latest-arm-16)

passed  1 passed

Details

stats  1 test across 1 suite
duration  35.7 seconds
commit  96a6d70
info  🔄 Run: #24012 (attempt 1)

✅ oss · depot-ubuntu-latest-16 — run #24012 (attempt 1)

Playwright Test Results (oss - depot-ubuntu-latest-16)

passed  1 passed

Details

stats  1 test across 1 suite
duration  31.1 seconds
commit  96a6d70
info  🔄 Run: #24012 (attempt 1)

✅ oss · depot-ubuntu-latest-16 — run #24011 (attempt 1)

Playwright Test Results (oss - depot-ubuntu-latest-16)

passed  26 passed

Details

stats  26 tests across 15 suites
duration  34.1 seconds
commit  7692ca2
info  🔄 Run: #24011 (attempt 1)

✅ private-cloud · depot-ubuntu-latest-16 — run #23800 (attempt 1)

Playwright Test Results (private-cloud - depot-ubuntu-latest-16)

passed  1 passed

Details

stats  1 test across 1 suite
duration  39.3 seconds
commit  e29a95c
info  🔄 Run: #23800 (attempt 1)

✅ private-cloud · depot-ubuntu-latest-arm-16 — run #23800 (attempt 1)

Playwright Test Results (private-cloud - depot-ubuntu-latest-arm-16)

passed  5 passed

Details

stats  5 tests across 5 suites
duration  6.1 seconds
commit  e29a95c
info  🔄 Run: #23800 (attempt 1)

✅ oss · depot-ubuntu-latest-arm-16 — run #23800 (attempt 1)

Playwright Test Results (oss - depot-ubuntu-latest-arm-16)

passed  1 passed

Details

stats  1 test across 1 suite
duration  36.7 seconds
commit  e29a95c
info  🔄 Run: #23800 (attempt 1)

✅ oss · depot-ubuntu-latest-16 — run #23800 (attempt 1)

Playwright Test Results (oss - depot-ubuntu-latest-16)

passed  1 passed

Details

stats  1 test across 1 suite
duration  32.3 seconds
commit  e29a95c
info  🔄 Run: #23800 (attempt 1)

✅ private-cloud · depot-ubuntu-latest-arm-16 — run #23732 (attempt 1)

Playwright Test Results (private-cloud - depot-ubuntu-latest-arm-16)

passed  3 passed

Details

stats  3 tests across 3 suites
duration  35.4 seconds
commit  9cd5edd
info  🔄 Run: #23732 (attempt 1)

✅ oss · depot-ubuntu-latest-arm-16 — run #23732 (attempt 1)

Playwright Test Results (oss - depot-ubuntu-latest-arm-16)

passed  1 passed

Details

stats  1 test across 1 suite
duration  35.1 seconds
commit  9cd5edd
info  🔄 Run: #23732 (attempt 1)

@codecov

codecov Bot commented Nov 19, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.10%. Comparing base (1abe8c2) to head (96a6d70).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #9022   +/-   ##
=======================================
  Coverage   98.10%   98.10%           
=======================================
  Files        1724     1725    +1     
  Lines       73823    73892   +69     
=======================================
+ Hits        72425    72494   +69     
  Misses       1398     1398           

☔ 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.

@github-actions

github-actions Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

Visual Regression

31 screenshots compared. See report for details.
View full report

@github-actions github-actions Bot added feature New feature or request and removed feature New feature or request docs Documentation updates labels Nov 20, 2026

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

Copy link
Copy Markdown

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.

Requires human review: Auto-approval blocked by 1 unresolved issue from previous reviews.

Turn on auto-fix | Re-trigger cubic

Base automatically changed from push-qsnsylxyonzx to main November 25, 2026 10:21
@germangarces
germangarces force-pushed the telemetry-retry-requests branch from e241c39 to 9cd5edd Compare November 25, 2026 10:29
@github-actions github-actions Bot added docs Documentation updates feature New feature or request and removed feature New feature or request docs Documentation updates labels Nov 25, 2026
@germangarces
germangarces force-pushed the telemetry-retry-requests branch from 9cd5edd to e29a95c Compare November 26, 2026 07:57
@github-actions github-actions Bot added docs Documentation updates feature New feature or request and removed feature New feature or request docs Documentation updates labels Nov 26, 2026
@germangarces
germangarces force-pushed the telemetry-retry-requests branch from e29a95c to 7692ca2 Compare December 1, 2026 11:22
@github-actions github-actions Bot added docs Documentation updates feature New feature or request and removed feature New feature or request docs Documentation updates labels Dec 1, 2026

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

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

No issues found across 8 files

Confidence score: 5/5

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

Requires human review: Adds a telemetry state table and migration plus retry logic to resend failed usage snapshots; needs human sign-off for the schema change and for duplicate-push/query-growth/retry tradeoffs.

Turn on auto-fix | Re-trigger cubic

This branch was successfully deployed

1 active deployment
Preview – docs — 96a6d70d Deployed Dec 1, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api Issue related to the REST API docs Documentation updates feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant