Pin the rest of requirements.txt so a rebuild can't shift the stack silently

Đang mở
#303 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
25/100
Loại issue
Tính năng
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Sôi nổi
Công nghệ
fastapi, python
Lĩnh vực
build-system, devops

Hướng nghiên cứu

Start by reading requirements.txt and the CI and image build install steps described in the issue; compare how each environment resolves dependencies. Then decide between compatible release pins and a generated lockfile, including how updates will be scheduled. Done means both install paths use a consistent dependency set and there is a maintainable update approach.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

#294 was caused by fastapi being unpinned: the image built for v1.7.0 picked up 0.137.0, which
stopped honouring app.openapi_schema, and the service shipped a valid-but-wrong OpenAPI document
without anything failing. That pin is now fastapi~=0.141.1.

Everything else in requirements.txt is still unpinned and can move the same way under an unrelated
rebuild:

requests
httpx
uvicorn
pyyaml
jsonlines
pytest

httpx is the one that matters most — it is how the API talks to Solr — but any of them can change
between a passing CI run and the image ITRB deploys, since the two install at different times from
the same unpinned list.

Needs a decision on approach rather than a quick edit:

  • Pin everything at compatible-release (~=) versions, as fastapi and the opentelemetry packages
    now are?
  • Or generate a fully-pinned lockfile (pip-compile / uv pip compile) from a loose top-level list,
    which also makes CI and the image install identical sets?
  • Either way, how do the pins get bumped on a schedule so they don't rot into a stack we can't
    upgrade?

Related: the opentelemetry packages are already hard-pinned at 1.27.0 / 0.48b0, which is old
enough to be worth reviewing as part of this.

Ngôn ngữ chính
Python
Star
5
Fork
4
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

  • Có Dockerfile hoặc tệp Docker Compose
  • Không có mẫu pull request
  • Không có hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của NCATSTranslator/NameResolution

Tất cả issue của NCATSTranslator/NameResolution

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.