Automattic / Automattic/dserve

Multiple simultaneous requests result in HTTP 304

Open
#208 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
24
Forks
5
PR merge metrics
No merged PRs in 30d

Description

Certain test suites in the Playwright E2E project intermittently encounter HTTP 304 status when first attempting to load a calypso URL.

The failure is presumably occurring [here](https://github.com/Automattic/wp-calypso/blob/trunk/packages/calypso-e2e/src/lib/flows/login-flow.ts#L65) when the `/log-in` endpoint is being hit by multiple containers at the same time. Retrying (automatically via `magellan`) usually results in the next iteration being able to access the endpoint as normal.

Slack thread: p1624428683011700-slack-C01BVMH5C20

Contributor guide

No contributing guide indexed for this repository

Research direction

Start at packages/calypso-e2e/src/lib/flows/login-flow.ts around line 65 and inspect how concurrent containers request the Calypso login URL. Run the affected Playwright E2E suites with multiple containers, compare the initial request with Magellan's retry, and confirm that simultaneous first loads no longer intermittently return HTTP 304.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, playwright, typescript
Domain
infrastructure, testing-qa
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.