From 8fdc49b8f5505ce8b19ac06616be719ea2b724d7 Mon Sep 17 00:00:00 2001 From: Himesh Ahuja Date: Mon, 19 Jan 2026 20:04:51 -0500 Subject: [PATCH 01/19] testjob --- .github/workflows/ci.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2186da08..7c08f344 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -97,3 +97,12 @@ jobs: - name: Run ESLint run: npx eslint -c .config/.eslintrc.yml tcf_website/static/ + + testjob: + needs: [pylint, django, eslint] + runs-on: ubuntu-latest + steps: + - name: Display results + run: | + echo "Pylint, Django Tests, and ESLint jobs completed." + echo "Code coverage from Django tests: ${{ needs.django.outputs.code-coverage }}" From 5b67bde95348da1a7a8e7a682df9d3900ef278aa Mon Sep 17 00:00:00 2001 From: Himesh Ahuja Date: Mon, 19 Jan 2026 20:19:19 -0500 Subject: [PATCH 02/19] testjob --- .github/workflows/ci.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7c08f344..db774870 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -46,6 +46,7 @@ jobs: runs-on: ubuntu-latest outputs: code-coverage: ${{ steps.coverage.outputs.percentage }} + money: 100 services: postgres: image: postgres:15.4 @@ -106,3 +107,4 @@ jobs: run: | echo "Pylint, Django Tests, and ESLint jobs completed." echo "Code coverage from Django tests: ${{ needs.django.outputs.code-coverage }}" + echo "Money value from Django job: ${{ needs.django.outputs.money }}" \ No newline at end of file From b295337ef103447a59d46b23f7a714eb02134e0c Mon Sep 17 00:00:00 2001 From: Himesh Ahuja Date: Mon, 19 Jan 2026 20:21:44 -0500 Subject: [PATCH 03/19] testjob --- .github/workflows/ci.yml | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index db774870..4b79856a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -46,7 +46,6 @@ jobs: runs-on: ubuntu-latest outputs: code-coverage: ${{ steps.coverage.outputs.percentage }} - money: 100 services: postgres: image: postgres:15.4 @@ -80,7 +79,7 @@ jobs: - name: Get code coverage id: coverage run: | - echo "percentage=$(coverage report | grep -o '[0-9]\+%' | tail -1)" >> $GITHUB_OUTPUT + echo "percentage=$(coverage report | grep -o '[0-9]\+%' | tail -1)" eslint: runs-on: ubuntu-latest @@ -98,13 +97,3 @@ jobs: - name: Run ESLint run: npx eslint -c .config/.eslintrc.yml tcf_website/static/ - - testjob: - needs: [pylint, django, eslint] - runs-on: ubuntu-latest - steps: - - name: Display results - run: | - echo "Pylint, Django Tests, and ESLint jobs completed." - echo "Code coverage from Django tests: ${{ needs.django.outputs.code-coverage }}" - echo "Money value from Django job: ${{ needs.django.outputs.money }}" \ No newline at end of file From 8b2feee309c423b06695589998e258f6fb50547d Mon Sep 17 00:00:00 2001 From: Himesh Ahuja Date: Thu, 22 Jan 2026 10:46:10 -0500 Subject: [PATCH 04/19] testjob --- .github/workflows/ci.yml | 30 +++++++++++++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4b79856a..aac29e65 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -79,7 +79,7 @@ jobs: - name: Get code coverage id: coverage run: | - echo "percentage=$(coverage report | grep -o '[0-9]\+%' | tail -1)" + echo "percentage=$(coverage report | grep -o '[0-9]\+%' | tail -1)" >> $GITHUB_OUTPUT eslint: runs-on: ubuntu-latest @@ -97,3 +97,31 @@ jobs: - name: Run ESLint run: npx eslint -c .config/.eslintrc.yml tcf_website/static/ + + probe_endpoint: + name: Endpoint probe (compose) + needs: [pylint, django, eslint] + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Build & start stack + run: | + docker compose up -d --build + + - name: Wait for app health + run: | + # Replace /health with your health endpoint + for i in {1..60}; do + if curl -fsS http://localhost:8000 > /dev/null; then + echo "App is up" + exit 0 + fi + echo "Waiting for app..." + sleep 2 + done + echo "App did not become healthy in time" + docker compose ps + docker compose logs --no-color + exit 1 + From e2ea9e2a8e2cd96e503701b13896d8308b755e0f Mon Sep 17 00:00:00 2001 From: Himesh Ahuja Date: Fri, 30 Jan 2026 17:17:11 -0500 Subject: [PATCH 05/19] testing --- .github/workflows/ci.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index aac29e65..b6de762b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -111,9 +111,8 @@ jobs: - name: Wait for app health run: | - # Replace /health with your health endpoint for i in {1..60}; do - if curl -fsS http://localhost:8000 > /dev/null; then + if curl -fsS http://localhost:8000 then echo "App is up" exit 0 fi From 27cfbaf625ba0ff59fe8a0dee6e2647ab687d3b4 Mon Sep 17 00:00:00 2001 From: Himesh Ahuja Date: Fri, 30 Jan 2026 17:21:10 -0500 Subject: [PATCH 06/19] testing --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b6de762b..1c59a44a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -112,7 +112,7 @@ jobs: - name: Wait for app health run: | for i in {1..60}; do - if curl -fsS http://localhost:8000 then + if curl -fsS http://localhost:8000; then echo "App is up" exit 0 fi From b0288f354008ce362f354f5510aac51e35e91334 Mon Sep 17 00:00:00 2001 From: Himesh Ahuja Date: Sun, 1 Feb 2026 14:09:09 -0500 Subject: [PATCH 07/19] testing --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1c59a44a..a798f6d3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -112,7 +112,7 @@ jobs: - name: Wait for app health run: | for i in {1..60}; do - if curl -fsS http://localhost:8000; then + if curl -fsS http://host.docker.internal:8000; then echo "App is up" exit 0 fi From 3d60b1af409d61f4a1ae1551c1fee77853a4c1a9 Mon Sep 17 00:00:00 2001 From: Himesh Ahuja Date: Sun, 1 Feb 2026 14:17:09 -0500 Subject: [PATCH 08/19] Finish --- tcf_core/settings/dev.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tcf_core/settings/dev.py b/tcf_core/settings/dev.py index 9bd99e15..380e1be2 100644 --- a/tcf_core/settings/dev.py +++ b/tcf_core/settings/dev.py @@ -4,7 +4,7 @@ DEBUG = True -ALLOWED_HOSTS = ["localhost", "127.0.0.1", ".grok.io"] +ALLOWED_HOSTS = ["localhost", "127.0.0.1", "0.0.0.0", "192.168.1.247", ".grok.io"] # Local PostgreSQL database DATABASES = { From 11ffd9ae34a5c26a70a9c78fc2ee8d20ea542649 Mon Sep 17 00:00:00 2001 From: Himesh Ahuja Date: Sun, 1 Feb 2026 14:29:55 -0500 Subject: [PATCH 09/19] Finish --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a798f6d3..ca07c206 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -107,12 +107,12 @@ jobs: - name: Build & start stack run: | - docker compose up -d --build + docker compose up --build - name: Wait for app health run: | for i in {1..60}; do - if curl -fsS http://host.docker.internal:8000; then + if curl -fsS http://localhost:8000; then echo "App is up" exit 0 fi From ac7913afc45380fed40e3f90d31c9c4923f26820 Mon Sep 17 00:00:00 2001 From: Himesh Ahuja Date: Sun, 1 Feb 2026 14:30:31 -0500 Subject: [PATCH 10/19] Finish --- .github/workflows/ci.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ca07c206..c4757e1f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -100,7 +100,6 @@ jobs: probe_endpoint: name: Endpoint probe (compose) - needs: [pylint, django, eslint] runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 From f62304f3d9be6fa72123d66b88983435d1ca1683 Mon Sep 17 00:00:00 2001 From: Himesh Ahuja Date: Sun, 1 Feb 2026 14:33:50 -0500 Subject: [PATCH 11/19] Finish --- tcf_core/settings/dev.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tcf_core/settings/dev.py b/tcf_core/settings/dev.py index 380e1be2..9bd99e15 100644 --- a/tcf_core/settings/dev.py +++ b/tcf_core/settings/dev.py @@ -4,7 +4,7 @@ DEBUG = True -ALLOWED_HOSTS = ["localhost", "127.0.0.1", "0.0.0.0", "192.168.1.247", ".grok.io"] +ALLOWED_HOSTS = ["localhost", "127.0.0.1", ".grok.io"] # Local PostgreSQL database DATABASES = { From 1ea28c71bfab853a367f2bb6f7a080c20828ca58 Mon Sep 17 00:00:00 2001 From: Himesh Ahuja Date: Sun, 1 Feb 2026 14:43:16 -0500 Subject: [PATCH 12/19] Finish --- .github/workflows/ci.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c4757e1f..20df41e4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -107,10 +107,12 @@ jobs: - name: Build & start stack run: | docker compose up --build + docker compose logs -f - name: Wait for app health run: | for i in {1..60}; do + docker compose ps if curl -fsS http://localhost:8000; then echo "App is up" exit 0 From 3b2eaff153e9a7d83da727cdb155332335a6aa6d Mon Sep 17 00:00:00 2001 From: Himesh Ahuja Date: Sun, 1 Feb 2026 14:58:46 -0500 Subject: [PATCH 13/19] test --- .github/workflows/ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 20df41e4..9937bcd4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -74,6 +74,7 @@ jobs: - name: Migrations & Tests run: | python manage.py migrate + echo curl -fsS http://localhost:8000 coverage run manage.py test - name: Get code coverage From 0c68556a8e7de2c626b602eace114f668b8d9174 Mon Sep 17 00:00:00 2001 From: Himesh Ahuja Date: Sun, 1 Feb 2026 15:01:37 -0500 Subject: [PATCH 14/19] test --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9937bcd4..e6ab72cc 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -74,7 +74,7 @@ jobs: - name: Migrations & Tests run: | python manage.py migrate - echo curl -fsS http://localhost:8000 + curl -fsS http://localhost:8000 coverage run manage.py test - name: Get code coverage From 562e46fe6a9f19dc637ae1cca8f43d2e9d1b8295 Mon Sep 17 00:00:00 2001 From: Himesh Ahuja Date: Sun, 1 Feb 2026 15:29:57 -0500 Subject: [PATCH 15/19] test --- .github/workflows/ci.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e6ab72cc..300a5418 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -102,6 +102,12 @@ jobs: probe_endpoint: name: Endpoint probe (compose) runs-on: ubuntu-latest + env: + DB_USER: postgres + DB_PASSWORD: postgres + DB_NAME: tcf_db + DB_PORT: 5432 + SECRET_KEY: ci-secret-key-not-for-production steps: - uses: actions/checkout@v4 From b4c6996a17ac972755fade1c805666067e21d588 Mon Sep 17 00:00:00 2001 From: Himesh Ahuja Date: Sun, 1 Feb 2026 15:31:49 -0500 Subject: [PATCH 16/19] test --- .github/workflows/ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 300a5418..8f8d2b84 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -118,6 +118,7 @@ jobs: - name: Wait for app health run: | + echo ${{ env.SECRET_KEY }} for i in {1..60}; do docker compose ps if curl -fsS http://localhost:8000; then From 48d686bb19dfa0392ae90a775d371b35e32c41f4 Mon Sep 17 00:00:00 2001 From: Himesh Ahuja Date: Sun, 1 Feb 2026 15:34:02 -0500 Subject: [PATCH 17/19] test --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8f8d2b84..d6d754cd 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -113,12 +113,12 @@ jobs: - name: Build & start stack run: | + echo ${{ env.SECRET_KEY }} docker compose up --build docker compose logs -f - name: Wait for app health run: | - echo ${{ env.SECRET_KEY }} for i in {1..60}; do docker compose ps if curl -fsS http://localhost:8000; then From daff407ccf0bf48442d5cd05f443d8047211b55e Mon Sep 17 00:00:00 2001 From: Himesh Ahuja Date: Sun, 8 Feb 2026 14:24:11 -0500 Subject: [PATCH 18/19] testing CI --- .github/workflows/ci.yml | 6 ------ 1 file changed, 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d6d754cd..f8172ed9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -102,12 +102,6 @@ jobs: probe_endpoint: name: Endpoint probe (compose) runs-on: ubuntu-latest - env: - DB_USER: postgres - DB_PASSWORD: postgres - DB_NAME: tcf_db - DB_PORT: 5432 - SECRET_KEY: ci-secret-key-not-for-production steps: - uses: actions/checkout@v4 From d1bde041edaa99c719b7e1ecb2ee0f9c68ab431f Mon Sep 17 00:00:00 2001 From: Himesh Ahuja Date: Sun, 8 Feb 2026 15:04:59 -0500 Subject: [PATCH 19/19] started --- .github/workflows/ci.yml | 25 ++++++++----------------- 1 file changed, 8 insertions(+), 17 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f8172ed9..452d52cd 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -107,23 +107,14 @@ jobs: - name: Build & start stack run: | - echo ${{ env.SECRET_KEY }} - docker compose up --build - docker compose logs -f + docker compose up -d --build - - name: Wait for app health + - name: Probe endpoint run: | - for i in {1..60}; do - docker compose ps - if curl -fsS http://localhost:8000; then - echo "App is up" - exit 0 - fi - echo "Waiting for app..." - sleep 2 - done - echo "App did not become healthy in time" - docker compose ps - docker compose logs --no-color - exit 1 + sleep 5 + curl -i http://localhost:8000 + + - name: test app is still running + run: curl -i localhost:3000 +