Compare commits
3 Commits
c319d8a55f
...
fix/ci-pro
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0e01e17dfe | ||
|
|
ca46ab1ea0 | ||
|
|
a01c45cb64 |
@@ -197,10 +197,20 @@ release:
|
|||||||
PYTEST_SCRIPT
|
PYTEST_SCRIPT
|
||||||
|
|
||||||
# Integration tests for stage deployment (full suite)
|
# Integration tests for stage deployment (full suite)
|
||||||
# Reset stage template - shared by pre and post test reset jobs
|
integration_test_stage:
|
||||||
|
<<: *integration_test_template
|
||||||
|
needs: [deploy_stage]
|
||||||
|
variables:
|
||||||
|
ORCHARD_TEST_URL: $STAGE_URL
|
||||||
|
rules:
|
||||||
|
- if: '$CI_COMMIT_BRANCH == "main"'
|
||||||
|
when: on_success
|
||||||
|
|
||||||
|
# Reset stage environment after integration tests (clean slate for next run)
|
||||||
# Calls the /api/v1/admin/factory-reset endpoint which handles DB and S3 cleanup
|
# Calls the /api/v1/admin/factory-reset endpoint which handles DB and S3 cleanup
|
||||||
.reset_stage_template: &reset_stage_template
|
reset_stage:
|
||||||
stage: deploy
|
stage: deploy
|
||||||
|
needs: [integration_test_stage]
|
||||||
image: deps.global.bsf.tools/docker/python:3.12-slim
|
image: deps.global.bsf.tools/docker/python:3.12-slim
|
||||||
timeout: 5m
|
timeout: 5m
|
||||||
retry: 1 # Retry once on transient failures
|
retry: 1 # Retry once on transient failures
|
||||||
@@ -274,26 +284,6 @@ release:
|
|||||||
rules:
|
rules:
|
||||||
- if: '$CI_COMMIT_BRANCH == "main"'
|
- if: '$CI_COMMIT_BRANCH == "main"'
|
||||||
when: on_success
|
when: on_success
|
||||||
|
|
||||||
# Reset stage BEFORE integration tests (ensure known state)
|
|
||||||
reset_stage_pre:
|
|
||||||
<<: *reset_stage_template
|
|
||||||
needs: [deploy_stage]
|
|
||||||
|
|
||||||
# Integration tests for stage deployment (full suite)
|
|
||||||
integration_test_stage:
|
|
||||||
<<: *integration_test_template
|
|
||||||
needs: [reset_stage_pre]
|
|
||||||
variables:
|
|
||||||
ORCHARD_TEST_URL: $STAGE_URL
|
|
||||||
rules:
|
|
||||||
- if: '$CI_COMMIT_BRANCH == "main"'
|
|
||||||
when: on_success
|
|
||||||
|
|
||||||
# Reset stage AFTER integration tests (clean slate for next run)
|
|
||||||
reset_stage:
|
|
||||||
<<: *reset_stage_template
|
|
||||||
needs: [integration_test_stage]
|
|
||||||
allow_failure: true # Don't fail pipeline if reset has issues
|
allow_failure: true # Don't fail pipeline if reset has issues
|
||||||
|
|
||||||
# Integration tests for feature deployment (full suite)
|
# Integration tests for feature deployment (full suite)
|
||||||
|
|||||||
@@ -1,8 +0,0 @@
|
|||||||
# Gitleaks configuration
|
|
||||||
# https://github.com/gitleaks/gitleaks#configuration
|
|
||||||
|
|
||||||
[allowlist]
|
|
||||||
# Test files that contain variable names matching secret patterns (e.g., s3_key)
|
|
||||||
paths = [
|
|
||||||
'''backend/tests/.*\.py''',
|
|
||||||
]
|
|
||||||
@@ -8,11 +8,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
### Changed
|
### Changed
|
||||||
- Simplified tag pipeline to only run deploy and smoke tests (image already built on main) (#54)
|
- Simplified tag pipeline to only run deploy and smoke tests (image already built on main) (#54)
|
||||||
- Added pre-test stage reset to ensure known environment state before integration tests (#54)
|
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
- Fixed production CI deployment namespace to use correct `orch-namespace` (#54)
|
- Fixed production CI deployment namespace to use correct `orch-namespace` (#54)
|
||||||
- Added gitleaks config to allowlist test files from secret scanning (#54)
|
|
||||||
|
|
||||||
## [0.5.0] - 2026-01-23
|
## [0.5.0] - 2026-01-23
|
||||||
### Added
|
### Added
|
||||||
|
|||||||
Reference in New Issue
Block a user