build: more agent env setup improvements - #1109
Conversation
- Dockerfile: Pin uwsgi==2.0.23 and set PIP_NO_BUILD_ISOLATION=1 to fix Poetry PEP 517 build failure - docker-compose.dev.yml: Update ES image from 7.17.0 to 7.17.9 to fix cgroups v2 crash - AGENTS.md: Document discovered gotchas (ES cgroup, uwsgi build, postgres secrets) Co-authored-by: Wesley B <wesleyboar@users.noreply.github.com>
Co-authored-by: Wesley B <wesleyboar@users.noreply.github.com>
…LATION) Build succeeds without these changes; the initial failure was transient. Co-authored-by: Wesley B <wesleyboar@users.noreply.github.com>
Review Summary by QodoFix Elasticsearch cgroups v2 crash and document dev gotchas
WalkthroughsDescription• Update Elasticsearch image to 7.17.9 to fix cgroups v2 crash • Document Elasticsearch cgroups v2 compatibility issue • Document optional Postgres secret files for development Diagramflowchart LR
ES["Elasticsearch 7.17.0<br/>crashes on cgroups v2"]
FIX["Update to 7.17.9"]
DOCS["Document gotchas<br/>in AGENTS.md"]
ES -- "fix kernel issue" --> FIX
FIX --> DOCS
DOCS -- "includes postgres secrets" --> DOCS
File Changes1. docker-compose.dev.yml
|
Code Review by Qodo
1.
|
This change avoids missing files created as empty dirs.
This reverts commit 2bd795a.
Co-authored-by: Wesley B <wesleyboar@users.noreply.github.com>
|
/review |
|
Persistent review updated to latest commit 67b690c |
|
Qodo is hallucinating. All is well. No more 7.17.0 references. All are 7.17.9. |
## Overview Do **not** let A.I. agent environment tweaks affect other environments. ## Related - refactors #1109 - matches ElasticSearch used by [TACC/Core-Portal@v3.19.0](https://github.com/TACC/Core-Portal/blob/v3.19.0/server/conf/docker/docker-compose-dev.all.debug.yml#L35) - ~~fixes [WC-428]~~ ## Changes - **ignores** `docker-compose.agent.yml` - **documents** that AI should use `docker-compose.agent.yml` as necessary ## Testing Skipped. ## UI N/A ## Notes Initially, this PR was to solve [WC-428], but @jarosenb assures me that [the real issue (private)](https://tacc-team.slack.com/archives/C04TQ1P04UX/p1774373248637889?thread_ts=1774367163.360269&cid=C04TQ1P04UX) is unrelated to this. But, I still would have preferred this solution to #1109, so I'm tempted to merge it. [WC-428]: https://tacc-main.atlassian.net/browse/WC-428
Overview
Resolve issues encountered while setting up dev env
Related
Changes
docker-compose.dev.yml: updated Elasticsearch image from7.17.0to7.17.9AGENTS.md: noted discovered gotchasTesting
DJANGO_SUPERUSER_PASSWORD=admin123 make setuplocalhost:8000.localhost:9201/_cluster/health.docker exec core_cms flake8 taccsite_cms/ --max-line-length=120(332 pre-existing warnings expected).docker exec core_cms python manage.py test taccsite_cms.contrib.taccsite_sample --no-input(6 tests passed).UI
Verified. Not posted.