Skip to content

test: fix CI failures unrelated to the PRs they block - #46618

Merged
hyoban merged 5 commits into
mainfrom
test/fix-unrelated-ci-failures
Nov 17, 2026
Merged

hyoban merged 5 commits into
mainfrom
test/fix-unrelated-ci-failures

Conversation

@hyoban

@hyoban hyoban commented Nov 17, 2026

Copy link
Copy Markdown
Member

Summary

Fixes failures that showed up on open PRs whose changes do not touch the failing code. Found by checking the latest Main CI run of every open PR updated since 2026-11-14 (16 of them failed). Follow-up to #46617, which fixes the merge-queue failures.

Failure Seen on Cause Fix
tools/labels/__tests__/selector.browser.spec.tsx > retains the real catalog selection… #46551 The ~590px popup overflows the default 414px Browser Mode viewport. The failure screenshot shows the first option click lost: clicking scrolls, the popup repositions, and the click can land on stale coordinates. Set a 1024×768 viewport in the test. 0/24 failures locally under 4× parallel load; the original did not reproduce locally (0/48), so this fix is based on the screenshot.
conversation-opener/__tests__/index.spec.tsx > saves the edited statement… #46616 The settings modal is React.lazy. The first test that opens it pays the cold import (prompt editor and its dependencies) inside findByRole's 1s window. Import ../modal up front so lazy() resolves from the module cache.
CLI scripts/install-cli.test.ts (Windows) > classifies a 403… as a rate limit #46571 Every case spawns sh. On windows-latest the 40 cases took 28s, and one spawn exceeded the 5s default timeout. 30s test timeout for this file on Windows only. The Bun transport timeouts from the same run are covered by #46617.
API libs/test_epub.py::test_partition_epub_preserves_spine_order_and_title_chunking #46451 unstructured downloads en_core_web_sm from GitHub on first use. The unit job never installs it, so whichever test first touches it depends on the network; here the download failed. api/Dockerfile already pre-installs it. Pre-install the model after uv sync in the unit job, retrying up to 3 times.
E2E auth/redirect-security.feature:5 (Then I should be on the console home) #46442 Console home suspends until the template catalog loads. The E2E API uses the default remote mode, which fetches tmpl.dify.ai through the SSRF proxy (10s timeout, 600s cache), so a cold or slow fetch exceeds the 5s "Templates" heading assertion. HOSTED_FETCH_APP_TEMPLATES_MODE=builtin in the E2E API env: the bundled catalog that remote mode already falls back to. The @cloud-catalog-runtime scenarios set their own mode and are unaffected.

Not included (related to the PR's own changes, or not a test problem):

Checklist

  • This change requires a documentation update, included: Dify Document
  • I understand that this PR may be closed in case there was no previous discussion or issues. (This doesn't apply to typos!)
  • I've verified the change and added or updated tests where meaningful regression risk justifies coverage.
  • I've updated the documentation accordingly.
  • I ran make lint && make type-check (backend) and vp staged (frontend) to appease the lint gods

@github-actions github-actions Bot added size:S This PR changes 10-29 lines, ignoring generated files. web This relates to changes on the web. and removed size:S This PR changes 10-29 lines, ignoring generated files. labels Nov 17, 2026
@codecov

codecov Bot commented Nov 17, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 90.25%. Comparing base (39addda) to head (a42a134).

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #46618   +/-   ##
=======================================
  Coverage   90.25%   90.25%           
=======================================
  Files        6438     6438           
  Lines      405460   405460           
  Branches    81528    81528           
=======================================
+ Hits       365949   365957    +8     
+ Misses      33109    33100    -9     
- Partials     6402     6403    +1     
Flag Coverage Δ
api 90.03% <ø> (-0.01%) ⬇️
cli 94.30% <ø> (ø)
dify-ui 92.65% <ø> (ø)
web 90.36% <ø> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@hyoban
hyoban marked this pull request as ready for review November 17, 2026 13:41
@github-actions github-actions Bot added the size:S This PR changes 10-29 lines, ignoring generated files. label Nov 17, 2026
@hyoban
hyoban added this pull request to the merge queue Nov 17, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Nov 17, 2026
@hyoban
hyoban added this pull request to the merge queue Nov 17, 2026
@hyoban hyoban mentioned this pull request Nov 17, 2026
3 of 5 tasks
Merged via the queue into main with commit 7bdd8fe Nov 17, 2026
68 checks passed
@hyoban
hyoban deleted the test/fix-unrelated-ci-failures branch November 17, 2026 14:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:S This PR changes 10-29 lines, ignoring generated files. web This relates to changes on the web.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants