Skip to content

fix(experimentation): compute final results when an experiment is completed - #9140

Merged
Zaimwa9 merged 3 commits into
mainfrom
fix/experiment-final-results-on-complete
Nov 27, 2026
Merged

Zaimwa9 merged 3 commits into
mainfrom
fix/experiment-final-results-on-complete

Conversation

@Zaimwa9

@Zaimwa9 Zaimwa9 commented Nov 27, 2026

Copy link
Copy Markdown
Contributor

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

Closes #9129

  • Completing an experiment now queues compute_experiment_results and compute_experiment_exposures on commit, so final results no longer depend on a user refresh.
  • Bypasses the refresh throttle; the tasks already handle a missing results row and environments without a warehouse connection.

How did you test this code?

Extended the completion unit test to assert both tasks are queued after commit.

@vercel

vercel Bot commented Nov 27, 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 27, 2026 9:11am UTC
flagsmith-frontend-preview Ignored Ignored Preview Nov 27, 2026 9:11am UTC
flagsmith-frontend-staging Ignored Ignored Preview Nov 27, 2026 9:11am UTC

Request Review

@github-actions github-actions Bot added api Issue related to the REST API fix labels Nov 27, 2026
@codecov

codecov Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.93%. Comparing base (cd4a9b0) to head (bc0449e).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #9140   +/-   ##
=======================================
  Coverage   98.93%   98.93%           
=======================================
  Files        1716     1716           
  Lines       72808    72817    +9     
=======================================
+ Hits        72031    72040    +9     
  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 added fix and removed fix docs Documentation updates labels Nov 27, 2026
@Zaimwa9
Zaimwa9 marked this pull request as ready for review November 27, 2026 09:14
@Zaimwa9
Zaimwa9 requested review from a team as code owners November 27, 2026 09:14
@Zaimwa9
Zaimwa9 requested review from khvn26 and removed request for a team November 27, 2026 09:14
@github-actions github-actions Bot added fix and removed fix labels Nov 27, 2026
@github-actions

github-actions Bot commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

Docker builds report

Image Build Status Security report
ghcr.io/flagsmith/flagsmith-e2e:pr-9140 Finished ✅ Skipped
ghcr.io/flagsmith/flagsmith-api-test:pr-9140 Finished ✅ Skipped
ghcr.io/flagsmith/flagsmith:pr-9140 Finished ✅ Results ✅
ghcr.io/flagsmith/flagsmith-private-cloud:pr-9140 Finished ✅ Results ✅
ghcr.io/flagsmith/flagsmith-frontend:pr-9140 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.

No issues found across 3 files

Confidence score: 5/5

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

Requires human review: Completion now enqueues two background computations, changing task-queue load and bypassing the refresh throttle. Human review should confirm this operational tradeoff and the claimed safe behavior without a warehouse connection.

Turn on auto-fix | Re-trigger cubic

@github-actions

github-actions Bot commented Nov 27, 2026 •

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

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

passed  1 passed

Details

stats  1 test across 1 suite
duration  36.6 seconds
commit  bc0449e
info  🔄 Run: #23876 (attempt 1)

🗂️ Previous results
✅ private-cloud · depot-ubuntu-latest-16 — run #23876 (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  bc0449e
info  🔄 Run: #23876 (attempt 1)

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

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

passed  1 passed

Details

stats  1 test across 1 suite
duration  35.6 seconds
commit  bc0449e
info  🔄 Run: #23876 (attempt 1)

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

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

passed  1 passed

Details

stats  1 test across 1 suite
duration  3.2 seconds
commit  bc0449e
info  🔄 Run: #23876 (attempt 1)

@Zaimwa9
Zaimwa9 requested review from gagantrivedi and removed request for khvn26 November 27, 2026 09:21
@github-actions

Copy link
Copy Markdown
Contributor

Visual Regression

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

@Zaimwa9
Zaimwa9 merged commit 10483a0 into main Nov 27, 2026
55 checks passed
@Zaimwa9
Zaimwa9 deleted the fix/experiment-final-results-on-complete branch November 27, 2026 10:02
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 fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Experimentation: completing an experiment does not compute final results, while the docs say they are frozen as final

2 participants