Skip to content

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

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

germangarces wants to merge 8 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.

3 Skipped Deployments
Project Deployment Actions Updated
docs Ignored Ignored Preview Nov 26, 2026 7:57am UTC
flagsmith-frontend-preview Ignored Ignored Preview Nov 26, 2026 7:57am UTC
flagsmith-frontend-staging Ignored Ignored Preview Nov 26, 2026 7:57am UTC

Request Review

@linear-code

linear-code Bot commented Nov 19, 2026

Copy link
Copy Markdown

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-frontend:pr-9022 Finished ✅ Results ✅
ghcr.io/flagsmith/flagsmith-api-test:pr-9022 Finished ✅ Skipped
ghcr.io/flagsmith/flagsmith:pr-9022 Finished ✅ Results ✅
ghcr.io/flagsmith/flagsmith-api: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 #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)

🗂️ Previous results
✅ 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)

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

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

passed  6 passed

Details

stats  6 tests across 5 suites
duration  34.5 seconds
commit  9cd5edd
info  🔄 Run: #23732 (attempt 1)

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

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

passed  1 passed

Details

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

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

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

passed  1 passed

Details

stats  1 test across 1 suite
duration  48.6 seconds
commit  e241c39
info  🔄 Run: #23509 (attempt 1)

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

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

passed  5 passed

Details

stats  5 tests across 5 suites
duration  1 minute, 9 seconds
commit  e241c39
info  🔄 Run: #23509 (attempt 1)

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

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

passed  1 passed

Details

stats  1 test across 1 suite
duration  36.8 seconds
commit  e241c39
info  🔄 Run: #23509 (attempt 1)

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

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

passed  1 passed

Details

stats  1 test across 1 suite
duration  31.2 seconds
commit  e241c39
info  🔄 Run: #23509 (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.93%. Comparing base (0c37fca) to head (e29a95c).
⚠️ Report is 5 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #9022   +/-   ##
=======================================
  Coverage   98.93%   98.93%           
=======================================
  Files        1716     1717    +1     
  Lines       72808    72877   +69     
=======================================
+ Hits        72031    72100   +69     
  Misses        777      777           

☔ 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

29 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

This branch was successfully deployed

1 active (outdated) deployment
Preview – docs — 6559e21d Deployed Nov 19, 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 feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant