mcli-framework 8.0.68__tar.gz → 8.0.70__tar.gz
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.
- {mcli_framework-8.0.68/src/mcli_framework.egg-info → mcli_framework-8.0.70}/PKG-INFO +1 -1
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/pyproject.toml +1 -1
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/lib/constants/__init__.py +2 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/lib/constants/defaults.py +16 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/workflow/ci/act_runner.py +111 -47
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/workflow/ci/ci.py +18 -3
- {mcli_framework-8.0.68 → mcli_framework-8.0.70/src/mcli_framework.egg-info}/PKG-INFO +1 -1
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/LICENSE +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/MANIFEST.in +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/README.md +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/llms-full.txt +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/llms.txt +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/mcli_rust/Cargo.toml +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/mcli_rust/src/command_parser.rs +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/mcli_rust/src/file_watcher.rs +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/mcli_rust/src/lib.rs +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/mcli_rust/src/process_manager.rs +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/mcli_rust/src/tfidf.rs +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/setup.cfg +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/__init__.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/__main__.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/app/__init__.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/app/completion_helpers.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/app/context_cmd.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/app/delete_cmd.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/app/edit_cmd.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/app/import_cmd.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/app/init_cmd.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/app/list_cmd.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/app/main.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/app/model/__init__.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/app/model/model.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/app/model_cmd.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/app/mv_cmd.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/app/new_cmd.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/app/search_cmd.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/app/services_cmd.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/app/setup_cmd.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/app/source_sync_cmd.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/app/sync_cmd.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/app/video/__init__.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/app/video/video.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/config.toml +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/lib/__init__.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/lib/api/__init__.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/lib/api/api.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/lib/api/daemon_client.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/lib/api/daemon_client_local.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/lib/api/daemon_decorator.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/lib/api/mcli_decorators.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/lib/auth/__init__.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/lib/auth/auth.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/lib/auth/aws_manager.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/lib/auth/azure_manager.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/lib/auth/credential_manager.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/lib/auth/gcp_manager.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/lib/auth/key_manager.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/lib/auth/mcli_manager.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/lib/auth/token_manager.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/lib/auth/token_util.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/lib/config/__init__.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/lib/config/config.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/lib/config/settings.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/lib/constants/commands.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/lib/constants/env.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/lib/constants/messages.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/lib/constants/paths.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/lib/constants/scripts.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/lib/constants/storage.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/lib/custom_commands.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/lib/discovery/__init__.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/lib/discovery/command_discovery.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/lib/erd/__init__.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/lib/erd/erd.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/lib/erd/generate_graph.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/lib/errors.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/lib/feature_detection.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/lib/files/__init__.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/lib/files/files.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/lib/folder_workflows.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/lib/fs/__init__.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/lib/fs/fs.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/lib/ipfs_sync.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/lib/ipfs_utils.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/lib/ipns_manager.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/lib/lib.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/lib/logger/__init__.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/lib/logger/correlation.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/lib/logger/logger.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/lib/logger/structured.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/lib/optional_deps.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/lib/paths.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/lib/performance/__init__.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/lib/performance/optimizer.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/lib/performance/rust_bridge.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/lib/performance/uvloop_config.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/lib/pickles/__init__.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/lib/pickles/pickles.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/lib/pyenv/__init__.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/lib/pyenv/deps.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/lib/pyenv/manager.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/lib/pyenv/venv.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/lib/script_loader.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/lib/script_sync.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/lib/script_watcher.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/lib/search/cached_vectorizer.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/lib/secrets/__init__.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/lib/secrets/commands.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/lib/secrets/manager.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/lib/secrets/repl.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/lib/secrets/store.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/lib/services/__init__.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/lib/services/config.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/lib/services/data_pipeline.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/lib/services/health.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/lib/services/lsh_client.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/lib/services/manager.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/lib/services/redis_service.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/lib/services/registry.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/lib/services/state.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/lib/services/supervisor.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/lib/shell/__init__.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/lib/shell/exceptions.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/lib/shell/shell.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/lib/sync_key_store.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/lib/templates/__init__.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/lib/templates/command_templates.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/lib/toml/__init__.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/lib/toml/toml.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/lib/types.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/lib/ui/styling.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/lib/ui/visual_effects.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/lib/watcher/__init__.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/lib/watcher/watcher.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/lib/workflow_models.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/lib/workflow_runtime.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/lib/workspace_registry.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/mygroup/__init__.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/mygroup/test_cmd.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/public/__init__.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/public/commands/__init__.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/public/oi/oi.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/public/public.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/self/__init__.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/self/completion_cmd.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/self/env_cmd.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/self/health_cmd.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/self/ipfs_cmd.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/self/logs_cmd.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/self/migrate_cmd.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/self/release_notes_cmd.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/self/self_cmd.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/self/store_cmd.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/self/test_cmd.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/self/workflows_cmd.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/storage/__init__.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/storage/backends/__init__.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/storage/backends/ipfs_backend.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/storage/base.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/storage/cache.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/storage/encryption.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/storage/factory.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/storage/registry.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/storage/storacha_cli.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/workflow/__init__.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/workflow/ci/__init__.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/workflow/ci/act_lock.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/workflow/ci/runner_status.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/workflow/ci/workflow_transform.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/workflow/daemon/__init__.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/workflow/daemon/async_command_database.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/workflow/daemon/async_process_manager.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/workflow/daemon/client.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/workflow/daemon/daemon.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/workflow/daemon/daemon_api.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/workflow/daemon/enhanced_daemon.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/workflow/daemon/process_cli.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/workflow/daemon/process_manager.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/workflow/daemon/test_daemon.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/workflow/doc_convert.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/workflow/docker/__init__.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/workflow/docker/docker.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/workflow/file/__init__.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/workflow/gcloud/__init__.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/workflow/gcloud/config.toml +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/workflow/gcloud/gcloud.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/workflow/git_commit/__init__.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/workflow/git_commit/ai_service.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/workflow/interview/__init__.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/workflow/lsh_integration.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/workflow/model_service/client.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/workflow/model_service/download_and_run_efficient_models.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/workflow/model_service/lightweight_embedder.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/workflow/model_service/lightweight_model_server.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/workflow/model_service/lightweight_test.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/workflow/model_service/model_service.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/workflow/model_service/ollama_efficient_runner.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/workflow/model_service/openai_adapter.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/workflow/model_service/pdf_processor.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/workflow/model_service/test_efficient_runner.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/workflow/model_service/test_example.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/workflow/model_service/test_integration.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/workflow/model_service/test_new_features.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/workflow/notebook/__init__.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/workflow/notebook/command_loader.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/workflow/notebook/converter.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/workflow/notebook/executor.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/workflow/notebook/notebook_cmd.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/workflow/notebook/schema.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/workflow/notebook/validator.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/workflow/openai/openai.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/workflow/registry/__init__.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/workflow/registry/registry.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/workflow/repo/__init__.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/workflow/repo/repo.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/workflow/scheduler/__init__.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/workflow/scheduler/cron_parser.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/workflow/scheduler/job.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/workflow/scheduler/models.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/workflow/scheduler/monitor.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/workflow/scheduler/persistence.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/workflow/scheduler/scheduler.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/workflow/scheduler/validation.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/workflow/search/__init__.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/workflow/secrets/__init__.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/workflow/secrets/secrets_cmd.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/workflow/storage/__init__.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/workflow/storage/storage_cmd.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/workflow/sync/__init__.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/workflow/sync/test_cmd.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/workflow/videos/__init__.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/workflow/wakatime/__init__.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/workflow/wakatime/wakatime.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli/workflow/workflow.py +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli_framework.egg-info/SOURCES.txt +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli_framework.egg-info/dependency_links.txt +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli_framework.egg-info/entry_points.txt +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli_framework.egg-info/requires.txt +0 -0
- {mcli_framework-8.0.68 → mcli_framework-8.0.70}/src/mcli_framework.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: mcli-framework
|
|
3
|
-
Version: 8.0.
|
|
3
|
+
Version: 8.0.70
|
|
4
4
|
Summary: Portable workflow framework - transform any script into a versioned, schedulable command. Store in ~/.mcli/workflows/, version with lockfile, run as daemon or cron job.
|
|
5
5
|
Author-email: Luis Fernandez de la Vara <luis@lefv.io>
|
|
6
6
|
Maintainer-email: Luis Fernandez de la Vara <luis@lefv.io>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "mcli-framework"
|
|
3
|
-
version = "8.0.
|
|
3
|
+
version = "8.0.70"
|
|
4
4
|
description = "Portable workflow framework - transform any script into a versioned, schedulable command. Store in ~/.mcli/workflows/, version with lockfile, run as daemon or cron job."
|
|
5
5
|
readme = "README.md"
|
|
6
6
|
requires-python = ">=3.10"
|
|
@@ -21,6 +21,7 @@ from .commands import (
|
|
|
21
21
|
DefaultIncludedDirs,
|
|
22
22
|
)
|
|
23
23
|
from .defaults import (
|
|
24
|
+
ActOutputMarkers,
|
|
24
25
|
DateFormats,
|
|
25
26
|
Editors,
|
|
26
27
|
Encoding,
|
|
@@ -114,6 +115,7 @@ __all__ = [
|
|
|
114
115
|
"ServiceDefaults",
|
|
115
116
|
"IpfsDefaults",
|
|
116
117
|
"ImportDefaults",
|
|
118
|
+
"ActOutputMarkers",
|
|
117
119
|
# Commands
|
|
118
120
|
"CommandKeys",
|
|
119
121
|
"CommandGroups",
|
|
@@ -170,6 +170,22 @@ class IpfsDefaults:
|
|
|
170
170
|
DAEMON_POLL_INTERVAL_MS = 500
|
|
171
171
|
|
|
172
172
|
|
|
173
|
+
class ActOutputMarkers:
|
|
174
|
+
"""Patterns in `act` output that `mcli ci preflight` classifies (#247)."""
|
|
175
|
+
|
|
176
|
+
# act prints one per job it actually executed (runner/job_executor.go).
|
|
177
|
+
JOB_RESULT_PATTERN = r"\U0001F3C1\s+Job (succeeded|failed)"
|
|
178
|
+
JOB_SUCCEEDED = "succeeded"
|
|
179
|
+
JOB_FAILED = "failed"
|
|
180
|
+
# Lower-case substrings meaning the container runtime could not be reached.
|
|
181
|
+
DOCKER_UNREACHABLE = (
|
|
182
|
+
"cannot connect to the docker daemon",
|
|
183
|
+
"is the docker daemon running",
|
|
184
|
+
"error during connect",
|
|
185
|
+
"failed to connect to the docker api",
|
|
186
|
+
)
|
|
187
|
+
|
|
188
|
+
|
|
173
189
|
class ImportDefaults:
|
|
174
190
|
"""Import command default values."""
|
|
175
191
|
|
|
@@ -4,6 +4,7 @@ from __future__ import annotations
|
|
|
4
4
|
|
|
5
5
|
import os
|
|
6
6
|
import platform
|
|
7
|
+
import re
|
|
7
8
|
import shutil
|
|
8
9
|
import subprocess
|
|
9
10
|
import sys
|
|
@@ -11,6 +12,7 @@ import time
|
|
|
11
12
|
from enum import Enum
|
|
12
13
|
from pathlib import Path
|
|
13
14
|
|
|
15
|
+
from mcli.lib.constants import ActOutputMarkers
|
|
14
16
|
from mcli.workflow.ci.act_lock import LOCK_TIMEOUT_ENV, act_lock, resolve_timeout
|
|
15
17
|
|
|
16
18
|
# Docker Hub returns these when the unauthenticated image-pull rate limit is hit.
|
|
@@ -23,18 +25,38 @@ _RATE_LIMIT_MARKERS = (
|
|
|
23
25
|
)
|
|
24
26
|
|
|
25
27
|
# act emits this when no job matches the requested event (e.g. a
|
|
26
|
-
# workflow_dispatch-only workflow queried for pull_request). That is a
|
|
27
|
-
#
|
|
28
|
+
# workflow_dispatch-only workflow queried for pull_request). That is not a
|
|
29
|
+
# failure (it must not block the push, #205), but it is not a pass either:
|
|
30
|
+
# run_act falls back to workflow_dispatch gates, and reports NOT_VALIDATED when
|
|
31
|
+
# no job ran at all (#242).
|
|
28
32
|
_NO_STAGES_MARKERS = ("could not find any stages to run",)
|
|
29
33
|
|
|
34
|
+
# act prints one of these per job it actually executed (runner/job_executor.go).
|
|
35
|
+
# Exit 0 alone is not evidence: when every job is skipped (an `if:` guard, or a
|
|
36
|
+
# `runs-on` act has no platform for) act runs nothing and still exits 0 (#247).
|
|
37
|
+
# A PASS therefore needs >=1 "Job succeeded" and no "Job failed".
|
|
38
|
+
_JOB_RESULT_RE = re.compile(ActOutputMarkers.JOB_RESULT_PATTERN)
|
|
39
|
+
|
|
40
|
+
# act or the container runtime could not be reached. An environment problem,
|
|
41
|
+
# not a test failure: classified UNREACHABLE when no job ran.
|
|
42
|
+
_DOCKER_UNREACHABLE_MARKERS = ActOutputMarkers.DOCKER_UNREACHABLE
|
|
43
|
+
|
|
30
44
|
# Backoff (seconds) between docker rate-limit retries; the last value repeats.
|
|
31
45
|
_RETRY_BACKOFF = (15, 45)
|
|
32
46
|
_MAX_RETRIES = 2
|
|
33
47
|
|
|
34
48
|
# Dispatch-only workflows that are safe and expected to run as local gates.
|
|
35
|
-
#
|
|
49
|
+
# A workflow file is a gate when its stem (split on "-", "_", ".") has a gate
|
|
50
|
+
# token and no side-effect token. Deploy, release, publish, build and audit
|
|
51
|
+
# workflows are never selected; neither is the dormant self-hosted fallback.
|
|
36
52
|
_WORKFLOW_DIR = Path(".github/workflows")
|
|
37
|
-
|
|
53
|
+
_DISPATCH_GATE_TOKENS = frozenset(
|
|
54
|
+
{"ci", "test", "tests", "lint", "typecheck", "check", "checks", "scan", "security", "quality"}
|
|
55
|
+
)
|
|
56
|
+
_DISPATCH_SKIP_TOKENS = frozenset(
|
|
57
|
+
{"deploy", "release", "publish", "build", "audit", "ops", "upload", "notify", "sync"}
|
|
58
|
+
)
|
|
59
|
+
_DISPATCH_SKIP_STEMS = frozenset({"self-hosted-ci"})
|
|
38
60
|
|
|
39
61
|
# Header label of the job-id column in `act --list` table output.
|
|
40
62
|
_JOB_ID_HEADER = "Job ID"
|
|
@@ -46,9 +68,10 @@ def _act_command(*args: str) -> list[str]:
|
|
|
46
68
|
|
|
47
69
|
|
|
48
70
|
class PreflightResult(Enum):
|
|
49
|
-
PASS = "pass"
|
|
71
|
+
PASS = "pass" # act ran >=1 job and every job passed
|
|
50
72
|
FAIL = "fail"
|
|
51
|
-
UNREACHABLE = "unreachable"
|
|
73
|
+
UNREACHABLE = "unreachable" # act cannot run here
|
|
74
|
+
NOT_VALIDATED = "not_validated" # act ran, but no job matched: nothing validated
|
|
52
75
|
|
|
53
76
|
|
|
54
77
|
def _is_docker_rate_limited(output: str) -> bool:
|
|
@@ -61,6 +84,20 @@ def _has_no_stages(output: str) -> bool:
|
|
|
61
84
|
return any(marker in low for marker in _NO_STAGES_MARKERS)
|
|
62
85
|
|
|
63
86
|
|
|
87
|
+
def _job_results(output: str) -> tuple[int, int]:
|
|
88
|
+
"""(succeeded, failed) job counts from act's `🏁 Job …` result lines."""
|
|
89
|
+
results = _JOB_RESULT_RE.findall(output or "")
|
|
90
|
+
return (
|
|
91
|
+
results.count(ActOutputMarkers.JOB_SUCCEEDED),
|
|
92
|
+
results.count(ActOutputMarkers.JOB_FAILED),
|
|
93
|
+
)
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
def _is_docker_unreachable(output: str) -> bool:
|
|
97
|
+
low = (output or "").lower()
|
|
98
|
+
return any(marker in low for marker in _DOCKER_UNREACHABLE_MARKERS)
|
|
99
|
+
|
|
100
|
+
|
|
64
101
|
def act_available() -> bool:
|
|
65
102
|
return shutil.which("act") is not None
|
|
66
103
|
|
|
@@ -152,26 +189,28 @@ def default_container_arch() -> str | None:
|
|
|
152
189
|
return None
|
|
153
190
|
|
|
154
191
|
|
|
192
|
+
def _is_dispatch_gate(stem: str) -> bool:
|
|
193
|
+
"""True if a workflow file stem names a check (ci/test/lint/scan…), not a
|
|
194
|
+
deploy/release/publish/build job."""
|
|
195
|
+
stem = stem.lower()
|
|
196
|
+
if stem in _DISPATCH_SKIP_STEMS:
|
|
197
|
+
return False
|
|
198
|
+
tokens = set(re.split(r"[-_.]", stem))
|
|
199
|
+
return bool(tokens & _DISPATCH_GATE_TOKENS) and not tokens & _DISPATCH_SKIP_TOKENS
|
|
200
|
+
|
|
201
|
+
|
|
155
202
|
def dispatch_workflows() -> list[str]:
|
|
156
|
-
"""Return dispatch-only
|
|
203
|
+
"""Return dispatch-only check workflows safe to run locally, sorted by path.
|
|
157
204
|
|
|
158
|
-
The act-first migration
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
205
|
+
The act-first migration preserved workflow filenames, so a real gate may be
|
|
206
|
+
``elixir-ci.yml``, ``test.yml`` or ``lint.yml`` rather than ``ci.yml``.
|
|
207
|
+
Select by name token (see ``_DISPATCH_GATE_TOKENS``), and never select a
|
|
208
|
+
deploy/release/publish/build workflow or the dormant self-hosted fallback.
|
|
162
209
|
"""
|
|
163
210
|
if not _WORKFLOW_DIR.is_dir():
|
|
164
211
|
return []
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
for path in sorted((*_WORKFLOW_DIR.glob("*.yml"), *_WORKFLOW_DIR.glob("*.yaml"))):
|
|
168
|
-
stem = path.stem.lower()
|
|
169
|
-
is_ci = stem == "ci" or stem.startswith("ci-") or stem.endswith("-ci")
|
|
170
|
-
if stem == "self-hosted-ci":
|
|
171
|
-
continue
|
|
172
|
-
if is_ci or stem in _DISPATCH_GATE_NAMES:
|
|
173
|
-
workflows.append(str(path))
|
|
174
|
-
return workflows
|
|
212
|
+
paths = sorted((*_WORKFLOW_DIR.glob("*.yml"), *_WORKFLOW_DIR.glob("*.yaml")))
|
|
213
|
+
return [str(path) for path in paths if _is_dispatch_gate(path.stem)]
|
|
175
214
|
|
|
176
215
|
|
|
177
216
|
def list_jobs(event: str, workflow: str | None = None) -> list[str] | None:
|
|
@@ -255,15 +294,12 @@ def _run_with_retries(
|
|
|
255
294
|
if output:
|
|
256
295
|
sys.stdout.write(output if output.endswith("\n") else output + "\n")
|
|
257
296
|
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
# provisional — run_act decides whether a dispatch fallback exists.
|
|
263
|
-
if _has_no_stages(output):
|
|
264
|
-
return PreflightResult.PASS, output
|
|
297
|
+
# No job matches this event (e.g. workflow_dispatch-only). run_act
|
|
298
|
+
# decides whether a dispatch fallback exists.
|
|
299
|
+
if proc.returncode != 0 and _has_no_stages(output):
|
|
300
|
+
return PreflightResult.NOT_VALIDATED, output
|
|
265
301
|
|
|
266
|
-
if _is_docker_rate_limited(output):
|
|
302
|
+
if proc.returncode != 0 and _is_docker_rate_limited(output):
|
|
267
303
|
if attempt < retries:
|
|
268
304
|
delay = backoff[min(attempt, len(backoff) - 1)]
|
|
269
305
|
sys.stdout.write(
|
|
@@ -279,7 +315,25 @@ def _run_with_retries(
|
|
|
279
315
|
)
|
|
280
316
|
return PreflightResult.UNREACHABLE, output
|
|
281
317
|
|
|
282
|
-
|
|
318
|
+
succeeded, failed = _job_results(output)
|
|
319
|
+
if proc.returncode != 0 or failed:
|
|
320
|
+
return PreflightResult.FAIL, output
|
|
321
|
+
if succeeded:
|
|
322
|
+
return PreflightResult.PASS, output
|
|
323
|
+
|
|
324
|
+
# act exited 0 but reported no job result: nothing ran (#247).
|
|
325
|
+
if _is_docker_unreachable(output):
|
|
326
|
+
sys.stdout.write(
|
|
327
|
+
"⚠️ act could not reach the container runtime (Docker/Podman) — "
|
|
328
|
+
"no job ran; cannot validate locally.\n"
|
|
329
|
+
)
|
|
330
|
+
return PreflightResult.UNREACHABLE, output
|
|
331
|
+
sys.stdout.write(
|
|
332
|
+
"⚠️ act exited 0 but no job ran (no '🏁 Job succeeded' line): every job "
|
|
333
|
+
"was skipped by an `if:` condition or an unsupported `runs-on`. This is "
|
|
334
|
+
"NOT a pass.\n"
|
|
335
|
+
)
|
|
336
|
+
return PreflightResult.NOT_VALIDATED, output
|
|
283
337
|
|
|
284
338
|
|
|
285
339
|
def run_act(
|
|
@@ -289,34 +343,40 @@ def run_act(
|
|
|
289
343
|
) -> PreflightResult:
|
|
290
344
|
"""Run act for `event` and classify the outcome.
|
|
291
345
|
|
|
292
|
-
- exit 0 -> PASS.
|
|
346
|
+
- exit 0 with >=1 ``🏁 Job succeeded`` line and no ``Job failed`` -> PASS.
|
|
347
|
+
- exit 0 with no job result line (every job skipped by an ``if:`` or an
|
|
348
|
+
unsupported ``runs-on``) -> not a pass: try the dispatch gates below,
|
|
349
|
+
else NOT_VALIDATED (#247). If the runtime was unreachable -> UNREACHABLE.
|
|
293
350
|
- non-zero whose output shows a Docker Hub pull rate limit
|
|
294
351
|
(``toomanyrequests``) -> retried; if still limited, UNREACHABLE.
|
|
295
|
-
- any other non-zero exit -> FAIL.
|
|
352
|
+
- any other non-zero exit, or any ``Job failed`` line -> FAIL.
|
|
296
353
|
|
|
297
354
|
Migrated repos are ``workflow_dispatch``-only, so the default
|
|
298
355
|
``pull_request`` event matches no jobs. Rather than hollow-pass, discover
|
|
299
|
-
|
|
300
|
-
``workflow_dispatch``. Deploy
|
|
356
|
+
check workflows (ci/test/lint/scan…, see ``dispatch_workflows``) and run
|
|
357
|
+
their real job ids via ``workflow_dispatch``. Deploy, release, publish and
|
|
358
|
+
build workflows are never selected.
|
|
301
359
|
|
|
302
360
|
A green result means act actually executed ≥1 job and every job passed. If
|
|
303
361
|
``act --list`` shows jobs but a run reports "could not find any stages"
|
|
304
|
-
(i.e. act ran nothing), that is a FAILURE
|
|
362
|
+
(i.e. act ran nothing), that is a FAILURE. If no job matched the event and
|
|
363
|
+
no dispatch gate has a job, the result is NOT_VALIDATED — never PASS (#242).
|
|
305
364
|
"""
|
|
306
365
|
arch = default_container_arch()
|
|
307
366
|
result, output = _run_with_retries(build_act_command(event, arch=arch), retries, backoff)
|
|
308
367
|
|
|
309
|
-
if
|
|
368
|
+
if result != PreflightResult.NOT_VALIDATED:
|
|
310
369
|
return result
|
|
311
370
|
|
|
312
|
-
# No
|
|
371
|
+
# No job ran for the requested event (no stages, or every job skipped) —
|
|
372
|
+
# try safe workflow_dispatch gates.
|
|
313
373
|
workflows = dispatch_workflows()
|
|
314
374
|
if not workflows:
|
|
315
375
|
sys.stdout.write(
|
|
316
|
-
"
|
|
317
|
-
"
|
|
376
|
+
f"⚠️ No '{event}' jobs and no ci/test/lint/scan workflow_dispatch "
|
|
377
|
+
"workflow — nothing was validated.\n"
|
|
318
378
|
)
|
|
319
|
-
return PreflightResult.
|
|
379
|
+
return PreflightResult.NOT_VALIDATED
|
|
320
380
|
|
|
321
381
|
ran_job = False
|
|
322
382
|
for workflow in workflows:
|
|
@@ -332,11 +392,9 @@ def run_act(
|
|
|
332
392
|
continue
|
|
333
393
|
|
|
334
394
|
sys.stdout.write(
|
|
335
|
-
f"ℹ️ No '{event}'
|
|
336
|
-
f"{workflow} {jobs} via workflow_dispatch…\n"
|
|
395
|
+
f"ℹ️ No '{event}' job ran; running {workflow} {jobs} via workflow_dispatch…\n"
|
|
337
396
|
)
|
|
338
397
|
for job in jobs:
|
|
339
|
-
ran_job = True
|
|
340
398
|
result, output = _run_with_retries(
|
|
341
399
|
build_act_command("workflow_dispatch", workflow=workflow, job=job, arch=arch),
|
|
342
400
|
retries,
|
|
@@ -346,14 +404,19 @@ def run_act(
|
|
|
346
404
|
return PreflightResult.UNREACHABLE
|
|
347
405
|
# We KNOW this job exists (it came from `act --list`), so "no stages"
|
|
348
406
|
# here means act ran nothing — a failure, not a no-op. Do not pass.
|
|
349
|
-
if result
|
|
407
|
+
if result == PreflightResult.FAIL or _has_no_stages(output):
|
|
350
408
|
return PreflightResult.FAIL
|
|
409
|
+
# A job act skipped (its `if:`, or `runs-on` act cannot serve) ran
|
|
410
|
+
# nothing; only a job that really succeeded counts toward a pass.
|
|
411
|
+
if result == PreflightResult.PASS:
|
|
412
|
+
ran_job = True
|
|
351
413
|
|
|
352
414
|
if not ran_job:
|
|
353
415
|
sys.stdout.write(
|
|
354
|
-
"
|
|
355
|
-
"
|
|
416
|
+
f"⚠️ No '{event}' job ran, and no workflow_dispatch job in "
|
|
417
|
+
f"{', '.join(workflows)} ran either — nothing was validated.\n"
|
|
356
418
|
)
|
|
419
|
+
return PreflightResult.NOT_VALIDATED
|
|
357
420
|
|
|
358
421
|
return PreflightResult.PASS
|
|
359
422
|
|
|
@@ -361,7 +424,8 @@ def run_act(
|
|
|
361
424
|
def preflight(
|
|
362
425
|
repo_slug: str, event: str = "pull_request", lock_timeout: float | None = None
|
|
363
426
|
) -> PreflightResult:
|
|
364
|
-
"""Primary gate. PASS/FAIL if act can run; UNREACHABLE if act can't start here
|
|
427
|
+
"""Primary gate. PASS/FAIL if act can run; UNREACHABLE if act can't start here;
|
|
428
|
+
NOT_VALIDATED if act ran but no job matched (nothing was validated).
|
|
365
429
|
|
|
366
430
|
`repo_slug` is accepted for symmetry and future use; the runner fallback is
|
|
367
431
|
orchestrated by the CLI layer based on runner_status.has_online_runner.
|
|
@@ -120,6 +120,13 @@ def preflight(event, lock_timeout):
|
|
|
120
120
|
if result == PreflightResult.FAIL:
|
|
121
121
|
click.echo("❌ act failed — fix before opening PR.")
|
|
122
122
|
raise SystemExit(1)
|
|
123
|
+
if result == PreflightResult.NOT_VALIDATED:
|
|
124
|
+
click.echo(
|
|
125
|
+
"⚠️ act ran no job — nothing was validated (this is NOT a pass). Add a "
|
|
126
|
+
"ci/test/lint workflow with a workflow_dispatch trigger, or validate "
|
|
127
|
+
"this PR by other means."
|
|
128
|
+
)
|
|
129
|
+
raise SystemExit(2)
|
|
123
130
|
# UNREACHABLE
|
|
124
131
|
if slug and has_online_runner(slug):
|
|
125
132
|
click.echo(
|
|
@@ -144,6 +151,9 @@ def pr():
|
|
|
144
151
|
if result == PreflightResult.FAIL:
|
|
145
152
|
click.echo("act failed; not opening PR.")
|
|
146
153
|
raise SystemExit(1)
|
|
154
|
+
if result == PreflightResult.NOT_VALIDATED:
|
|
155
|
+
click.echo("act ran no job; refusing to open an unvalidated PR.")
|
|
156
|
+
raise SystemExit(2)
|
|
147
157
|
if slug and has_online_runner(slug):
|
|
148
158
|
click.echo("act unreachable; pushing so the runner can validate.")
|
|
149
159
|
subprocess.run(["git", "push", "-u", "origin", "HEAD"], check=False, timeout=120)
|
|
@@ -156,9 +166,11 @@ def pr():
|
|
|
156
166
|
PRE_PUSH_HOOK = """#!/usr/bin/env bash
|
|
157
167
|
# mcli-ci pre-push gate: validate with act before pushing.
|
|
158
168
|
# Blocks ONLY on a real act failure (exit 1). When act cannot validate locally
|
|
159
|
-
# — e.g. Docker Hub rate-limit (toomanyrequests, retried first), no docker,
|
|
160
|
-
#
|
|
161
|
-
# environment hiccup
|
|
169
|
+
# — e.g. Docker Hub rate-limit (toomanyrequests, retried first), no docker, an
|
|
170
|
+
# online runner will validate instead, or the repo has no workflow job act can
|
|
171
|
+
# run (exit 2/3) — the push is allowed so an environment hiccup or a repo with
|
|
172
|
+
# no gate never wedges your workflow, but the hook says loudly that the push
|
|
173
|
+
# was NOT validated. It never reports such a push as green.
|
|
162
174
|
# act runs are serialised machine-wide, so this may wait for another repo's
|
|
163
175
|
# preflight to finish (bounded; see --lock-timeout / MCLI_CI_LOCK_TIMEOUT).
|
|
164
176
|
# Override a real failure with:
|
|
@@ -183,6 +195,9 @@ if [ "$code" -eq 1 ]; then
|
|
|
183
195
|
echo "mcli-ci: act reported failures — push blocked. Override: git push --no-verify" >&2
|
|
184
196
|
exit 1
|
|
185
197
|
fi
|
|
198
|
+
if [ "$code" -ne 0 ]; then
|
|
199
|
+
echo "mcli-ci: WARNING — this push was NOT validated (preflight exit $code). Push allowed." >&2
|
|
200
|
+
fi
|
|
186
201
|
exit 0
|
|
187
202
|
"""
|
|
188
203
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: mcli-framework
|
|
3
|
-
Version: 8.0.
|
|
3
|
+
Version: 8.0.70
|
|
4
4
|
Summary: Portable workflow framework - transform any script into a versioned, schedulable command. Store in ~/.mcli/workflows/, version with lockfile, run as daemon or cron job.
|
|
5
5
|
Author-email: Luis Fernandez de la Vara <luis@lefv.io>
|
|
6
6
|
Maintainer-email: Luis Fernandez de la Vara <luis@lefv.io>
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|