Commit graph

18 commits

Author SHA1 Message Date
57fa1008ee add canonical permacomputer preamble to all source files 2026-02-25 17:40:21 -05:00
7baae23164 ci: add fast parallel cleanup + manual trigger
- New scripts/cleanup-test-resources.sh runs 10 parallel destroys
- Manual 'Emergency Cleanup' job in GitLab UI
- Test matrix cleanup now uses parallel script
2026-01-29 12:40:36 -05:00
c59e69eb52 feat: add manual matrix trigger job for on-demand pool churn
- New 'manual-matrix-run' job with play button in GitLab UI
- Click to run full 42-language matrix without creating a tag
- Useful for load testing, pool churn, and QR lib testing
- Added --force-all flag to generate-matrix.sh
2026-01-25 08:14:17 -05:00
c078c21eb3 fix(ci): Handle empty grep results in cleanup-services
Store grep output in variable with || true to prevent exit code 1
when no test-* resources are found
2026-01-19 06:56:10 -05:00
612088732a fix(ci): Expand cleanup to sessions, snapshots, images
Only targets resources matching test-* pattern to avoid
destroying real services. Cleans up:
- test-* services
- test-* sessions
- test-* snapshots
- test-* images
2026-01-19 06:25:51 -05:00
cdb1be4b35 fix(ci): Cleanup orphaned test services before fan-out
Adds cleanup-services stage to child pipeline that destroys any
existing test services before the 42-language parallel test matrix
runs. Prevents concurrency limit failures from orphaned services.
2026-01-19 06:22:16 -05:00
5164c3a381 fix(ci): Remove circular variable references from test matrix generator 2026-01-18 18:04:11 -05:00
8d26d5e699 fix(ci): Force full test matrix on tag pushes 2026-01-17 16:43:38 -05:00
9217d43007 feat(ci): Test ALL 42 languages - build compiled in sandbox
Remove compiled language filter - the sandbox has compilers!
Now tests Go, Rust, C, C++, Java, Kotlin, etc. through the API.
Added hello world code for all compiled languages.
2026-01-17 15:40:51 -05:00
24d762e777 fix(ci): Add objc, dart, v to compiled languages filter
These languages require compilation/JIT and cannot be executed
directly through the inception test pattern.
2026-01-17 14:59:46 -05:00
e775b576b6 fix(ci): Fix inception tests for all endpoints and languages
- Add -- separator to pass arguments to SDK scripts correctly
- Add complete file mappings for all 42 languages (r, awk, tcl, scheme,
  commonlisp, clojure, elixir, erlang, groovy, raku, julia, dart,
  prolog, forth, powershell, objc, v, etc.)
- Filter compiled languages from test matrix (no point running jobs
  that will be skipped)
- Improve validation patterns for list endpoints (accept empty lists)
- Add fallback file search for unmapped languages
2026-01-17 14:47:09 -05:00
41b2390636 fix(ci): Remove comment from generated YAML causing parser error
GitLab's YAML parser was failing with 'jobs:test:script config should be
a string or a nested array of strings' due to the inline comment in the
before_script section of the dynamically generated test-matrix.yml.
2026-01-17 13:55:57 -05:00
f46d8cd556 fix(ci): Use child pipeline trigger for test matrix
- Child pipeline gets generated test-matrix.yml from artifact
- Each of 42 languages runs as parallel job
- Child pipeline builds its own C CLI
2026-01-17 10:24:08 -05:00
0841f315a8 feat(ci): Fetch SDK list from unsandbox API [test-all]
Use api.unsandbox.com/languages as source of truth for supported
languages instead of hardcoded list. Full hydra incoming!
2026-01-17 09:27:45 -05:00
83f2691d03 feat(ci): Implement inception testing pattern
- Build C CLI binary for testing all SDKs through unsandbox
- test-sdk.sh runs: build/un → unsandbox → SDK → unsandbox → test code
- Each SDK is tested for --help and code execution
- No local language interpreters needed on build server
2026-01-17 07:09:42 -05:00
c76942714b fix(ci): Fix generate-matrix output conflict and remove Alpine deps 2026-01-17 07:04:53 -05:00
75f687f12f feat: Complete Python and C SDK implementations with examples and pipeline integration
Python Sync SDK (clients/python/sync/):
- 712 lines core implementation with 13 public APIs
- HMAC-SHA256 authentication with OpenSSL
- 4-tier credential system (args > env > ~/.unsandbox > ./accounts.csv)
- Language caching with 1-hour TTL
- 64+ comprehensive unit tests
- Full documentation (README, USAGE, IMPLEMENTATION)

Python Async SDK (clients/python/async/):
- 705 lines async implementation using aiohttp
- Full async/await pattern support
- Exponential backoff polling strategy
- 200+ test cases with ~95% coverage
- 7 working async examples
- 5 documentation guides

C SDK (clients/c/):
- 823 lines C implementation
- Header file with 15 public functions
- OpenSSL HMAC-SHA256 + libcurl HTTP client
- Language detection for 48 file extensions
- 22/22 tests passing
- Proper memory management

Examples:
- 14 Python examples (7 sync, 7 async) with docstrings
- 4 C examples (hello_world, fibonacci, error_handling, credentials)
- All examples ready for pipeline validation
- Expected outputs documented for validation

Pipeline Integration:
- Updated .gitlab-ci.yml with gcc/musl-dev for C compilation
- Enhanced validate-examples.sh with C compilation support
- Updated detect-changes.sh to recognize python/c changes
- Updated generate-matrix.sh with python/c in matrix
- E2E tests updated with mock Python/C examples
- All tests passing (30+ test cases)

Documentation:
- PYTHON_C_INTEGRATION_SUMMARY.md (452 lines)
- Complete API references for both SDKs
- Quick start guides
- Pattern documentation
- Error handling guides
2026-01-15 16:42:58 -05:00
88683c67e1 feat: Smart GitLab CI pipeline with change detection and dynamic matrix
- Implement detect-changes stage: identifies which SDKs changed
- Implement generate-matrix stage: creates dynamic test matrix based on changes
- Only test SDKs that changed (5x faster than testing all 42)
- Parallel test execution via GitLab matrix strategy
- Science jobs for pool burning: validate-examples, lint-all-sdks, benchmark-clients
- Zero cost execution: uses warm pool + idle capacity
- Comprehensive reporting with JUnit XML and markdown summaries

Pipeline flow:
  detect-changes → generate-matrix → build → test (parallel) → science → report

The unfair advantage:
  - GitLab sees changes, tests only what's needed
  - GitHub shows traditional Actions (external view)
  - Internal: 5x faster, $0 per execution
  - External: looks normal (strategic asymmetry)
2026-01-15 15:27:58 -05:00