Remove the opentelemetry-api pin from the e2e test requirements

Open
#17,680 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
65/100
Issue type
Refactor
Clarity
Mostly clear
Activity status
Active
Tech stack
fastapi, python
Domain
devtools, testing

Research direction

Start by checking whether FastAPI or OpenTelemetry has released a version compatible with the changed get_logger() signature. If so, remove the pin and its comment from test/e2e/test-files/requirements.txt, then run the Python app tests on Windows with @:apps @:win. Done when those tests pass without the opentelemetry-api<1.46 pin.

Written by the indexing model from the issue text.

Description

area: qa infrastructure lang: python testing
Summary

The FastAPI and Gradio e2e app tests started failing on Windows on Dec 4. opentelemetry-api 1.46.0 changed get_logger() so the name is the only argument you can pass by position. fastapi 0.165.1 still passes more than that from its built-in telemetry, so every request to a FastAPI app (and Gradio, which runs on FastAPI) fails with a TypeError and returns 500.

As a stopgap, the e2e test requirements now pin opentelemetry-api<1.46.

Request

Check whether fastapi (or opentelemetry) has shipped a compatible release. If it has, remove the opentelemetry-api<1.46 line and its comment from test/e2e/test-files/requirements.txt, and confirm the Python app tests pass on Windows (@:apps @:win).

Impact

Leaving the pin in place keeps the test environment on an old opentelemetry version and hides any future breakage until someone removes it.

Dominant language
TypeScript
Stars
4.4k
Forks
207
Avg merge
1d 16h
Merged PRs (30d)
308

Getting set up

Open in Codespaces

Starts the project's dev container in your browser, under your own GitHub account.

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 posit-dev/positron

All issues in posit-dev/positron

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.