Commit Graph

81 Commits

Author SHA1 Message Date
e113ab52f4 🐛 fix: use Dockerfile.prod.template instead of generating inline 2026-04-08 23:24:40 +02:00
1d3d482794 🐛 fix: add GNU tar to build cache image for cache compatibility\n\n- Add tar package to Dockerfile.build for --posix support\n- Revert to proper actions/cache@v5 implementation\n- This fixes the 'tar: unrecognized option: posix' error in Gitea runner
Some checks failed
CI/CD Pipeline / Build Docker Cache (push) Failing after 4m28s
CI/CD Pipeline / CI Pipeline (push) Has been skipped
2026-04-08 23:21:25 +02:00
58042009de 🐛 fix: use compatible cache save method for Gitea tar version 2026-04-08 23:14:53 +02:00
af982ad844 🔧 fix: update to actions/cache@v5 for better Gitea compatibility 2026-04-08 19:01:49 +02:00
2654b05f3b 🔧 fix: improve Swagger caching with explicit restore/save steps 2026-04-08 18:52:00 +02:00
44c2c055cf 🤖 feat: add Swagger Docs caching to CI/CD workflow 2026-04-08 18:13:47 +02:00
194b2aeb0e 🐛 fix: ensure single push in CI/CD workflow
All checks were successful
CI/CD Pipeline / Build Docker Cache (push) Successful in 11s
CI/CD Pipeline / CI Pipeline (push) Successful in 4m26s
2026-04-08 16:43:22 +02:00
4648680165 🤖 feat: implement single push with multiple commits approach
- Use original ci-update-coverage-badge.sh for individual badge commits
- Add version bump automation for main branch
- Single push at the end for all commits
- Follows gitmoji style with [skip ci] where appropriate

This implements the correct approach:
- Multiple commits (BDD, Unit, Version) in one step
- Single push at the end
- Proper commit messages with gitmoji
- [skip ci] to prevent loops
2026-04-08 15:56:22 +02:00
9f89132a1f 🤖 feat: enable badge updates on all branches
Separate concerns properly:
- Badge updates: run on all branches to keep documentation accurate
- Docker builds: only on main branch for production deployments

This follows best practices where documentation should be updated
regardless of branch, but deployments only happen from main.
2026-04-08 15:32:08 +02:00
23c175d643 🧪 test: temporarily enable badge updates on feature branch
Temporarily modify workflow condition to test badge updates on feature/user-authentication-bdd branch.
Will revert to main-only after testing.
2026-04-08 15:31:15 +02:00
0b6f18f33c 🤖 feat: implement KISS badge update using environment variables
All checks were successful
CI/CD Pipeline / Build Docker Cache (push) Successful in 9s
CI/CD Pipeline / CI Pipeline (push) Successful in 4m52s
- Fix badge URLs and remove duplicates
- Add update-all-badges.sh script for single commit updates
- Update CI/CD workflow to use environment variables
- Remove complex sequential commit logic
- Follow KISS principle with simple env var approach
2026-04-08 15:21:41 +02:00
cc9c2a5674 ♻️ refactor: use simple coverage file approach for BDD tests (KISS principle)
All checks were successful
CI/CD Pipeline / Build Docker Cache (push) Successful in 9s
CI/CD Pipeline / CI Pipeline (push) Successful in 4m48s
2026-04-08 13:56:29 +02:00
f47094cbba 🐛 fix: extract BDD coverage directly from test output instead of file 2026-04-08 13:48:06 +02:00
6c86c6dd04 🐛 fix: add debugging to diagnose missing coverage.out file in CI 2026-04-08 13:42:24 +02:00
32b11b1f97 ♻️ refactor: simplify coverage measurement using separate output files (KISS principle) 2026-04-08 13:13:36 +02:00
5f93743c54 🐛 fix: capture BDD test output properly to extract coverage percentage 2026-04-08 13:11:33 +02:00
f5e35464b9 📊 feat: add separate BDD and unit test coverage badges to distinguish test coverage types
Some checks failed
CI/CD Pipeline / Build Docker Cache (push) Successful in 9s
CI/CD Pipeline / CI Pipeline (push) Failing after 4m22s
2026-04-08 13:05:06 +02:00
5bfb08abc7 🧪 test: fix BDD step registration and update CI/CD workflow
Some checks failed
CI/CD Pipeline / Build Docker Cache (push) Successful in 17s
CI/CD Pipeline / CI Pipeline (push) Has been cancelled
- Fix step pattern escaping in pkg/bdd/steps/steps.go:80
- Update CI/CD workflow to use run-bdd-tests.sh script
- Enhance run-bdd-tests.sh for both local and CI environments
- Add strict validation for undefined/pending/skipped steps
- Update BDD testing documentation with pattern requirements

The CI/CD pipeline now properly validates BDD tests and fails on any
undefined, pending, or skipped steps. All 22 BDD scenarios are passing
with correct step pattern registration.
2026-04-08 12:13:17 +02:00
3f84c91495 🔧 refactor: add fallback to cache check for reliability 2026-04-08 11:29:11 +02:00
48cb881af0 perf: optimize cache check using docker manifest inspect 2026-04-08 11:21:24 +02:00
cc3e254292 🐛 fix: add database environment variables for CI 2026-04-08 11:07:11 +02:00
d4bd11a3df 🐛 fix: remove unnecessary set up build environment step 2026-04-08 10:56:24 +02:00
a49704febc 🐛 fix: use relative paths instead of cd commands 2026-04-08 10:54:42 +02:00
3f718a7b9f 🐛 fix: correct working directory paths in CI workflow 2026-04-08 10:53:41 +02:00
db4922be05 🐛 fix: include Dockerfile.build in dependency hash calculation
Some checks failed
CI/CD Pipeline / Build Docker Cache (push) Successful in 3m27s
CI/CD Pipeline / CI Pipeline (push) Failing after 16s
2026-04-08 10:49:18 +02:00
ac87850ea3 🐛 fix: use simple docker run with CACHE_IMAGE variable 2026-04-08 10:43:05 +02:00
dc2662e960 🐛 fix: use simple docker run with CACHE_IMAGE variable
- Bypass docker compose entirely

- Use CACHE_IMAGE variable for consistency

- Simpler volume mount approach
2026-04-08 10:27:51 +02:00
94e625b416 🐛 fix: use original docker run approach with proper volume mount
- Back to docker run instead of docker compose

- Use pwd for current directory volume mount

- Match original working approach from successful builds
2026-04-08 10:19:00 +02:00
76e3579f06 🐛 fix: try running go generate directly on host
- Bypass Docker entirely for Swagger generation

- Test if issue is Docker-specific or workspace-related

- Simplest possible approach to isolate the problem
2026-04-08 10:17:09 +02:00
fc410fdb48 🐛 fix: remove working directory flags to work with Gitea auto-mounting
- Remove -w flags that conflict with Gitea's auto-generated mounts

- Let Docker Compose use default working directory from docker-compose.yml

- Align with Gitea Actions volume mounting best practices
2026-04-08 10:16:03 +02:00
4e21f3b98f 🐛 fix: make both docker compose commands consistent
- Add cd command to both steps

- Use same working directory pattern

- Ensures consistent volume mount behavior
2026-04-08 09:53:33 +02:00
934a7d9eb5 🐛 fix: change working directory before docker compose
- Run docker compose from repository root

- Ensures volume mount . resolves to full repository

- Simpler approach than command-line volume override
2026-04-08 09:52:20 +02:00
52a933fe67 🐛 fix: use command-line volume mount for correct workspace path
- Override docker-compose.yml volume with explicit host path

- Mount full repository root to /workspace in container

- Simplifies debugging and ensures go.mod is accessible
2026-04-08 09:51:12 +02:00
641522c1c7 🐛 fix: add comprehensive debugging for go.mod issue
- Add detailed workspace structure debugging

- Search for go.mod file location

- Show directory contents before go generate
2026-04-08 09:37:45 +02:00
84d9ba2ff5 🐛 fix: use correct workspace path in Docker container
- Remove debug step

- Use /workspace instead of /workspace/arcodange/dance-lessons-coach

- Matches actual Docker volume mount structure
2026-04-08 09:33:40 +02:00
78f6bf393e 🐛 fix: add debugging to diagnose workspace structure
- Add debug step to check workspace directory structure

- Add pwd and ls commands to Swagger generation step

- Helps diagnose go.mod file not found issue
2026-04-08 09:32:27 +02:00
b5cc67642f 🐛 fix: simplify Swagger docs generation command
- Remove complex working directory and GOPATH settings

- Use simple cd and package path approach

- Matches local working command structure
2026-04-08 09:31:12 +02:00
b31c6e46f9 🐛 fix: use correct workspace path for Swagger docs generation
- Update working directory to full repository path

- Set GOPATH to match repository root

- Fixes go.mod file not found error in CI workflow
2026-04-08 09:30:08 +02:00
94f3704f0e 🐛 fix: set GOPATH correctly for Swagger docs generation
- Set GOPATH environment variable to workspace root

- Allow go generate to find go.mod from parent directories

- Fixes go.mod file not found error in CI workflow
2026-04-08 09:29:09 +02:00
689d1e2057 🐛 fix: correct working directory for Swagger docs generation
- Change working directory approach for go generate command

- Run from root workspace but cd to pkg/server for execution

- Fixes go.mod file not found error in CI workflow
2026-04-08 09:27:49 +02:00
39bf083a23 🤖 ci: fix Docker Compose exec issue by using run instead
- Replace docker compose exec with docker compose run --rm

- Remove unnecessary container startup step

- Fixes 409 TCP upgrade error in CI workflow

- Maintains same functionality with better isolation
2026-04-08 09:23:04 +02:00
e333c69a71 🐛 fix: set DEPS_HASH as regular variable before export 2026-04-08 00:55:59 +02:00
841b23bb32 🐛 fix: debug DEPS_HASH value 2026-04-08 00:54:43 +02:00
58c8f09c77 🐛 fix: use needs output directly in docker compose step 2026-04-08 00:54:21 +02:00
5a2c896b4a 🐛 fix: add separate step to export DEPS_HASH 2026-04-08 00:53:58 +02:00
6eaca669cd 🐛 fix: use env var instead of needs output for DEPS_HASH 2026-04-08 00:53:21 +02:00
68a5cf7876 🐛 fix: set DEPS_HASH env var for ci-pipeline job 2026-04-08 00:52:47 +02:00
6f51a69854 🐛 fix: remove docker compose install from CI 2026-04-08 00:47:05 +02:00
f54c60c6a3 🔧 refactor: simplify CI/CD workflow by removing redundant cache checks
- Remove duplicate steps section
- Eliminate redundant cache availability checks
- Simplify logic since build-cache job guarantees cache availability
- Remove unnecessary conditional execution
- Streamline Docker Compose usage

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-04-07 23:28:47 +02:00
9213c97da6 🔧 fix: optimize Docker cache usage by removing redundant go mod tidy
- Remove unnecessary go mod tidy execution when using Docker cache
- Dependencies are already pre-installed in the cache image
- Only run go mod tidy when not using cache (native execution)
- This leverages the true purpose of the Docker build cache

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-04-07 23:22:30 +02:00