intermittent test failure: should buffer responses in nginx, not backend services

Open
#2,286 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
48/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
javascript, nginx
Domain
devops, testing

Research direction

Start with the failing test at test/nginx/src/mocha/nginx.spec.js, specifically the “SSL_TYPE=upstream” response buffering case, and inspect the linked GitHub Actions run for context. Re-run that test and investigate why it exceeds the five-second timeout; done when the test reliably passes and confirms buffering occurs in nginx rather than backend services.

Written by the indexing model from the issue text.

Description

ops testing

https://github.com/alxndrsn/odk-central/actions/runs/37618377731/job/112782169406

  1 failing

  1) nginx config
       SSL_TYPE=upstream
         response buffering
           should buffer responses in nginx, not backend services:
     Error: Timeout of 5000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves. (/home/runner/work/odk-central/odk-central/test/nginx/src/mocha/nginx.spec.js)
      at listOnTimeout (node:internal/timers:685:17)
      at process.processTimers (node:internal/timers:618:7)
Dominant language
JavaScript
Stars
233
Forks
241
Avg merge
1d 22h
Merged PRs (30d)
13

Getting set up

  • Ships a Dockerfile or Docker Compose file
  • Has a pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from getodk/central

All issues in getodk/central

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.