Files
stack/.gitea/workflows/comment-pull.yml
kert 87c2e8427c
Some checks failed
CI / lint (push) Successful in 1m26s
CI / notebooks-smoke (push) Successful in 2m36s
CI / test (push) Has been cancelled
Deploy / changes (push) Has started running
Deploy / notebooks (push) Has been cancelled
Deploy / zotero (push) Has been cancelled
Deploy / docs (push) Has been cancelled
Deploy / api (push) Has been cancelled
Deploy / bcda (push) Has been cancelled
Deploy / llm (push) Has been cancelled
Deploy / mc (push) Has been cancelled
Deploy / report (push) Has been cancelled
Infra CI / mc (push) Has been cancelled
Infra CI / notebooks (push) Has been cancelled
Infra CI / zotero (push) Has been cancelled
Infra CI / docs (push) Has been cancelled
Infra CI / api (push) Has been cancelled
Infra CI / bcda (push) Has been cancelled
Infra CI / llm (push) Has been cancelled
fix(comments): extract attachment text nightly, sealed or not
Nothing ran 'stack comments extract' on a schedule, and extract skipped
every sealed docket outright. 28 dockets (~29k comments with
attachments, including every OPPS/IPPS docket) were sealed before
anyone extracted them, so the tagger and the chat index only ever saw
their 'see attached' stubs. Comment Pull now extracts between pull and
index, and a seal skips only a fully extracted docket.
2026-11-11 15:05:54 -05:00

56 lines
1.9 KiB
YAML

# DO NOT EDIT — generated by gen_config.py from stack.toml
# Re-generate: uv run python dev/scripts/gen_config.py
name: Comment Pull
on:
workflow_dispatch:
schedule:
- cron: "30 2 * * *"
jobs:
comment-pull:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: https://github.com/actions/checkout@v4
- name: Set up uv
run: curl -LsSf https://astral.sh/uv/install.sh | sh
env:
UV_INSTALL_DIR: /usr/local/bin
- name: Register this year's PFS proposed rule, if published
run: |
docker exec api uv run --no-sync \
stack bib fetch-pfs-comments --since "$(date +%Y)-01-01" --attachments
- name: Pull and enrich every open docket
run: |
docker exec api uv run --no-sync stack bib pull-open-dockets
- name: Extract attachment text (PDF/DOCX to combined.md)
run: |
docker exec api uv run --no-sync stack comments extract --workers 4
- name: Index new comments for the chat search
run: |
docker exec llm uv run --no-sync stack llm index --collection comments
- name: File failure issue
if: failure() && !startsWith(github.head_ref || github.ref_name, 'renovate/')
env:
GITEA_TOKEN: ${{ secrets.DEPLOY_TOKEN }}
run: |
# Jobs that never install uv (image builds, infra checks) still
# need it here — otherwise the filer dies with "uv: command not
# found" and the failure is never filed.
command -v uv >/dev/null 2>&1 || curl -LsSf https://astral.sh/uv/install.sh | sh
export PATH="$HOME/.local/bin:$PATH"
uv sync --no-dev --quiet 2>/dev/null || true
uv run python -m api.diag.ci \
--workflow "Comment Pull" --job "comment-pull" \
--run "${{ github.run_number }}" \
--sha "${{ github.sha }}" \
--ref "${{ github.ref }}" || true