Commit 62e62de
committed
fix: improve test reliability and reduce verbose logging
This commit addresses CI test failures and improves the development experience:
**Test Reliability Improvements:**
- Fix Java executable detection in integration tests to check direct bin/java
location first, preventing bin/bin/java path construction errors
- Add proper working directory restoration in test cleanup to prevent
'getwd: no such file or directory' errors in subsequent tests
- Skip 'bin' directories when searching for nested Java installations
- Add comprehensive Java installation debug test for CI troubleshooting
**Verbose Logging Improvements:**
- Reduce environment variable logging noise by only logging actual changes
- Track original environment variable values to detect meaningful changes
- Eliminate redundant logging of unchanged system environment variables
- Maintain visibility into actual environment modifications made by mvx
**Technical Details:**
- Modified EnvironmentManager to track original values for change detection
- Enhanced findJavaExecutableWithDebug with proper directory traversal logic
- Added createTestEnvironment/cleanupTestEnvironment with directory restoration
- Improved test isolation to prevent cross-test contamination
These changes significantly improve CI reliability and reduce log verbosity
while maintaining full visibility into meaningful environment changes.1 parent d72a895 commit 62e62de
File tree
3 files changed
+1165
-36
lines changed- pkg/tools
- test
3 files changed
+1165
-36
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | | - | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
21 | | - | |
22 | | - | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
23 | 25 | | |
24 | 26 | | |
25 | 27 | | |
| |||
35 | 37 | | |
36 | 38 | | |
37 | 39 | | |
| 40 | + | |
38 | 41 | | |
39 | 42 | | |
40 | 43 | | |
| |||
46 | 49 | | |
47 | 50 | | |
48 | 51 | | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
49 | 62 | | |
50 | | - | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
51 | 74 | | |
52 | 75 | | |
53 | 76 | | |
| |||
0 commit comments