Mondo Diaz
c816286394
Add analyze stage and workflow rules to prevent duplicate pipelines
2026-01-13 23:09:51 +00:00
Mondo Diaz
1af5190d85
Fix invalid rules syntax in test jobs
2026-01-13 23:07:50 +00:00
Mondo Diaz
424ffc058d
Add explicit rules to test jobs to ensure they always run
2026-01-13 23:06:20 +00:00
Mondo Diaz
d36476c4f6
Add stages definition including Prosper and custom stages
2026-01-13 23:05:30 +00:00
Mondo Diaz
f0b36a4d2e
Fix stages: remove explicit definition to preserve Prosper template stages
2026-01-13 23:04:26 +00:00
Mondo Diaz
06c9038858
Add post-deployment integration tests
...
Adds integration test jobs that run after deployment to verify the
deployed application is functioning correctly. Tests cover:
- Health endpoint
- Project creation
- Package creation
- Artifact upload
- Artifact download (with content verification)
- Artifact listing
Each test run creates isolated resources (using unique IDs) and
cleans up after itself. Tests run against the deployed URL for
both stage (main branch) and feature branch deployments.
2026-01-13 23:02:47 +00:00
Mondo Diaz
b90e478f4b
Run only unit tests in CI test stage
...
Integration tests require Docker Compose services (PostgreSQL, MinIO, Redis)
which aren't available in the CI container. Unit tests run independently.
2026-01-13 23:01:08 +00:00
Mondo Diaz
b6e5a0fa4d
Remove exists rule from frontend_tests for consistent behavior
2026-01-13 22:53:32 +00:00
Mondo Diaz
22c173ec37
Enhance test jobs with caching, coverage, and parallel execution
...
CI improvements:
- Add needs: [] to run tests parallel with build (faster pipeline)
- Add pip/npm caching (faster subsequent runs)
- Add 15m timeout to prevent hung jobs
- Add pytest coverage with cobertura report for GitLab
- Add pytest JUnit report for test tab in MR
- Add vitest coverage with cobertura report for GitLab
- Add coverage regex for badge display
Frontend:
- Add @vitest/coverage-v8 dependency
- Configure vitest coverage reporter (text, cobertura, html)
2026-01-13 22:50:50 +00:00
Mondo Diaz
acd31129e9
Use deps.global.bsf.tools registry for frontend_tests image
2026-01-13 22:45:12 +00:00
Mondo Diaz
b74276ba70
Fix frontend_tests to use correct container registry
2026-01-13 22:44:27 +00:00
Mondo Diaz
085ed898e2
Refactor CI pipeline with templates and add frontend tests
...
- Add frontend_tests job (npm run test with Vitest)
- Add verification checks to deploy_stage (health, API, frontend)
- Extract shared YAML anchors: deploy_template, helm_setup, verify_deployment
- Reduce code duplication across deploy jobs
2026-01-13 22:43:21 +00:00
Mondo Diaz
4ec91b46ed
Fix security scan issues and harden docker-compose
...
Hadolint fixes:
- Use printf instead of echo for escape sequences
- Add hadolint ignore for apt pin version (DL3008)
KICS fixes (docker-compose):
- Add security_opt: no-new-privileges to all services
- Add mem_limit and cpus to prevent resource exhaustion
- Add healthcheck to orchard-server in docker-compose.yml
Gitleaks:
- Add .gitleaksignore for false positive (s3_key attribute name)
- Remove allow_failure from secrets job (now blocking)
Also:
- Remove || echo fallback from python_tests (tests should fail pipeline)
2026-01-13 22:40:51 +00:00
Mondo Diaz
d6644e9039
Add comprehensive deployment verification
...
- Health endpoint polling with retry loop
- API check (GET /api/v1/projects returns 200)
- Frontend check (HTML is served)
- Clear output with section headers
2026-01-13 22:28:48 +00:00
Mondo Diaz
f1b0c93f30
Add deployment verification with health check polling
...
- Add --wait --timeout 5m to helm upgrade
- Add kubectl rollout status check
- Poll health endpoint for up to 5 minutes (for cert provisioning)
2026-01-13 22:28:30 +00:00
Mondo Diaz
b07b6a8f8f
Add build_image dependency to deploy jobs
2026-01-13 22:14:31 +00:00
Mondo Diaz
ace643bb2e
Fix image tag format to match Prosper output (git.linux-amd64-SHA)
2026-01-13 22:06:02 +00:00
Mondo Diaz
f1aae057ed
Clean up CI pipeline and remove unused values files
...
- Use branch name (CI_COMMIT_REF_SLUG) instead of commit SHA for feature IDs
- Remove commented-out code and unused deploy template
- Fix deploy_stage to use kubectl config use-context
- Remove values-production.yaml and values-external.yaml
2026-01-13 21:51:50 +00:00
Mondo Diaz
66515f24d4
Add kubectl context to cleanup_feature job
2026-01-13 21:49:28 +00:00
Mondo Diaz
892f63e685
Fix helm path by returning to project root before deploy
2026-01-13 21:37:37 +00:00
Mondo Diaz
cd7c930176
Use kubectl config use-context for agent authentication
2026-01-13 21:28:10 +00:00
Mondo Diaz
0bbfe38293
Test: hardcode agent path to rule out variable interpolation
2026-01-13 21:12:08 +00:00
Mondo Diaz
d3a47f6167
Fix GitLab Agent paths to use full project:agent format
2026-01-13 19:32:09 +00:00
Armando Diaz
089d4a50df
update jobs to use correct image and agents.
2026-01-13 12:05:16 -06:00
Mondo Diaz
f6b79a7af0
Add feature branch deployment pipeline
...
- Add deploy_feature job for ephemeral dev environments
- Use unique identifier (feat-{short_sha}) for K8s resource isolation
- Dynamic hostnames for ingress (orchard-{sha}.common.global.bsf.tools)
- Add cleanup_feature job with on_stop for automatic cleanup on merge
- Add values-dev.yaml with lighter resources for ephemeral deployments
- Refactor deploy_stage to use dynamic image tag from CI
2026-01-13 16:45:48 +00:00
Dane Moss
deda96795b
comment out rule block for now
2026-01-13 16:43:49 +00:00
Dane Moss
f555dd6bde
try another rule
2026-01-13 16:43:49 +00:00
Dane Moss
36b79485ba
update job name
2026-01-13 16:43:49 +00:00
Dane Moss
b58deb4a60
Update .gitlab-ci.yml file
2026-01-13 16:43:49 +00:00
Dane Moss
d3bacfe6b6
Update 2 files
...
- /helm/orchard/values-stage.yaml
- /.gitlab-ci.yml
2026-01-13 16:43:49 +00:00
Mondo Diaz
7e68baed08
Add ref_count management for deletions with atomic operations and error handling
2026-01-06 13:44:23 -06:00
Dane Moss
bc3da14d50
Add prosper config
2025-12-12 13:52:27 -07:00
Mondo Diaz
386ea0df4d
Add NPM_REGISTRY build arg support in Dockerfile
...
- Accept NPM_REGISTRY ARG in frontend build stage
- Configure npm registry before install if provided
- Add build-arg to MR build stage in CI
2025-12-05 17:58:12 -06:00
Armando Diaz
2105fca189
add npm repo
2025-12-05 17:53:15 -06:00
Armando Diaz
9fb54970e8
trim ci jobs for now
2025-12-05 17:27:56 -06:00
Mondo Diaz
2261bfc830
Rewrite from Go + vanilla JS to Python (FastAPI) + React (TypeScript)
...
- Backend: Python 3.12 with FastAPI, SQLAlchemy, boto3
- Frontend: React 18 with TypeScript, Vite build tooling
- Updated Dockerfile for multi-stage Node + Python build
- Updated CI pipeline for Python backend
- Removed old Go code (cmd/, internal/, go.mod, go.sum)
- Updated README with new tech stack documentation
2025-12-05 17:16:43 -06:00
Armando Diaz
343f7bfc59
will setup deploy job later
2025-12-05 16:59:01 -06:00
Armando Diaz
f0a4bf11c3
start deploy job config
2025-12-05 08:51:25 -06:00
Armando Diaz
214a485ad9
update build ci
2025-12-04 19:13:57 -06:00
Armando Diaz
5861f9639a
install missing deps
2025-12-04 17:34:10 -06:00
Armando Diaz
b6493c55d0
set missing var
2025-12-04 17:32:41 -06:00
Armando Diaz
f2698e48e7
fix typo
2025-12-04 17:22:57 -06:00
Armando Diaz
a46e968a3c
test building
2025-12-04 17:18:06 -06:00
Mondo Diaz
cd75cb864d
Add Helm chart and GitLab CI pipeline
...
- Helm chart with PostgreSQL, MinIO, Redis as optional subcharts
- Production and external infrastructure value files
- HPA, Ingress, and health probe support
- GitLab CI pipeline using Buildah for container builds
- Multi-stage pipeline: test, build, publish
2025-12-04 14:57:46 -06:00