greenbump 0.4.0 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +44 -1
- package/action-dist/index.cjs +813 -18
- package/dist/cli.js +8 -0
- package/dist/cli.js.map +1 -1
- package/dist/engine/git.js +1 -0
- package/dist/engine/git.js.map +1 -1
- package/dist/engine/perf/metrics.js +171 -0
- package/dist/engine/perf/metrics.js.map +1 -0
- package/dist/engine/perf/regression.js +115 -0
- package/dist/engine/perf/regression.js.map +1 -0
- package/dist/engine/run.js +49 -1
- package/dist/engine/run.js.map +1 -1
- package/dist/engine/sandbox/docker-manager.js +215 -0
- package/dist/engine/sandbox/docker-manager.js.map +1 -0
- package/dist/engine/sandbox/orchestrator.js +107 -0
- package/dist/engine/sandbox/orchestrator.js.map +1 -0
- package/dist/engine/sandbox/service-detector.js +147 -0
- package/dist/engine/sandbox/service-detector.js.map +1 -0
- package/dist/engine/sandbox/template-generator.js +241 -0
- package/dist/engine/sandbox/template-generator.js.map +1 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,7 +3,50 @@
|
|
|
3
3
|
All notable changes to this project are documented here. Format follows
|
|
4
4
|
[Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
|
|
5
5
|
|
|
6
|
-
## [Unreleased] - v0.
|
|
6
|
+
## [Unreleased] - v0.5.0
|
|
7
|
+
|
|
8
|
+
### Added
|
|
9
|
+
- **Docker sandbox isolation**: Run tests in isolated Docker containers with `--sandbox` flag
|
|
10
|
+
- Auto-generates Dockerfile for Node.js and Python projects
|
|
11
|
+
- Eliminates environment pollution and matches CI environment
|
|
12
|
+
- Supports custom base images via configuration
|
|
13
|
+
- **Database integration testing**: Auto-detect and start required services
|
|
14
|
+
- Supports PostgreSQL, MySQL, Redis, MongoDB via docker-compose
|
|
15
|
+
- `--services` flag to manually specify services (e.g., `--services postgres,redis`)
|
|
16
|
+
- Automatic service detection from package.json, docker-compose.yml, and .env files
|
|
17
|
+
- Health check wait with configurable timeout
|
|
18
|
+
- **Performance regression detection**: Compare metrics before/after upgrade with `--detect-regressions`
|
|
19
|
+
- Tracks install time, build time, test time, bundle size, memory usage
|
|
20
|
+
- Configurable thresholds (default: build 20%, bundle 15%, test 30%)
|
|
21
|
+
- Automatic warning when regressions exceed thresholds
|
|
22
|
+
- Sets `needsReview` flag when performance degrades significantly
|
|
23
|
+
- New CLI flags:
|
|
24
|
+
- `--sandbox`: Enable Docker sandbox mode
|
|
25
|
+
- `--services <list>`: Comma-separated services to start
|
|
26
|
+
- `--keep-container`: Keep container after run for debugging
|
|
27
|
+
- `--detect-regressions`: Enable performance regression detection
|
|
28
|
+
- New modules:
|
|
29
|
+
- `src/engine/sandbox/` (orchestrator, docker-manager, template-generator, service-detector)
|
|
30
|
+
- `src/engine/perf/` (metrics, regression)
|
|
31
|
+
|
|
32
|
+
### Changed
|
|
33
|
+
- `RunOptions` now includes sandbox and performance detection options
|
|
34
|
+
- `RunSummary` extended with `sandboxResult` and `performanceRegression` fields
|
|
35
|
+
- Enhanced verification pipeline: baseline → upgrade → fix → static analysis → sandbox → performance
|
|
36
|
+
|
|
37
|
+
### Impact
|
|
38
|
+
- **Zero environment ambiguity**: Docker isolation eliminates "works on my machine" issues
|
|
39
|
+
- **Production-grade verification**: Database integration tests catch real-world breakage
|
|
40
|
+
- **Performance quality gates**: Automatically flag upgrades that degrade performance
|
|
41
|
+
- Target accuracy: 95%+ (up from 90% in v0.4.0)
|
|
42
|
+
- Positions greenbump as most thorough automated upgrade tool vs Dependabot/Renovate
|
|
43
|
+
|
|
44
|
+
### Requirements
|
|
45
|
+
- Docker must be installed and running for `--sandbox` mode
|
|
46
|
+
- docker-compose recommended for multi-service testing
|
|
47
|
+
- Graceful fallback to local verification if Docker unavailable
|
|
48
|
+
|
|
49
|
+
## [0.4.0] - 2026-08-17
|
|
7
50
|
|
|
8
51
|
### Added
|
|
9
52
|
- **Dependency graph analysis**: Use madge to build dependency graph and identify affected files
|