Skip to content

chore(anna): Python 3.15와 의존성 최신화 - #161

Merged
sudosubin merged 1 commit into
mainfrom
chore/python-3.15
Oct 28, 2026
Merged

sudosubin merged 1 commit into
mainfrom
chore/python-3.15

Conversation

@sudosubin

Copy link
Copy Markdown
Contributor

변경 사항

  • Python을 3.15로 올리고 Docker 이미지도 같은 버전을 사용하도록 바꿨습니다.
  • 의존성을 최신 버전으로 올렸습니다. 주요 변경은 gspread 6, slack-bolt 1.30, pydantic 2.14, cachetools 7, urllib3 2입니다.
  • pytest와 pytest-cov도 최신 버전으로 올리고, pytest 설정을 pytest 9의 [tool.pytest] 형식으로 옮겼습니다.

애플리케이션 코드는 바꾸지 않았습니다.

참고

  • 테스트는 외부 API를 mock으로 대체하기 때문에, 실제 Slack 이벤트 처리와 빅챗 신청·취소·시트 생성은 배포 후 확인이 필요합니다.
  • gspread 6에서 사용하는 API의 시그니처와 WorksheetNotFound 동작은 기존과 같은 것을 확인했습니다.
  • ruff와 black은 다음 PR에서 바꾸기 위해 기존 버전을 유지했습니다.

@progresshans progresshans left a comment •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

기존 main 코드를 검토하고 테스트 대역으로 재현해 다음 세 가지 문제를 확인했습니다. 모두 이번 Python·의존성 업데이트로 발생한 회귀는 아니며, 이번 PR의 수정 요청 사항도 아닙니다.

  1. 시트 대상 검증 누락: 스레드의 시트 링크에서 문서 ID나 빅챗 생성 기록을 확인하지 않고 gid만 사용합니다. 다른 문서의 링크라도 설정된 스프레드시트에 같은 gid가 있으면 해당 시트에 등록·취소가 전달될 수 있습니다. 관련 코드
  2. 등록 중복 발생: 서버에 행이 저장된 뒤 응답만 유실되면, 존재 여부를 다시 확인하지 않는 내부 재시도가 같은 행을 추가합니다. 한 번의 등록으로 동일 행 두 개가 남는 상황을 재현했습니다. 회사명 등 회원 정보가 바뀌어도 전체 행 비교를 통한 중복 검사를 통과합니다. 관련 코드
  3. 동시 취소 시 다른 신청자 삭제: 조회한 행 번호로 삭제하기 때문에, 먼저 처리된 취소가 행 번호를 바꾸면 다음 취소가 다른 사람의 행을 삭제할 수 있습니다. A·B가 동시에 취소했을 때 A·C가 삭제되고 B가 남는 상황을 재현했습니다. 관련 코드

이 세 항목은 별도 PR #166에서 개선합니다. 이번 PR에는 추가 수정 요청이 없으며, LGTM입니다.

@progresshans progresshans left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@sudosubin
sudosubin force-pushed the chore/python-3.15 branch 2 times, most recently from db5e41e to 8e4ed47 Compare October 28, 2026 15:14
@sudosubin
sudosubin force-pushed the chore/python-3.15 branch 2 times, most recently from aa5392c to d92c1e8 Compare October 28, 2026 15:19
Base automatically changed from chore/uv to main October 28, 2026 15:22
@sudosubin
sudosubin merged commit ba750e3 into main Oct 28, 2026
1 check passed
@sudosubin
sudosubin deleted the chore/python-3.15 branch October 28, 2026 15:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants