tlpytools 0.2.11__tar.gz → 0.2.12__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.
- {tlpytools-0.2.11 → tlpytools-0.2.12}/.github/copilot-instructions.md +3 -3
- {tlpytools-0.2.11 → tlpytools-0.2.12}/.github/skills/prepare-official-release/SKILL.md +2 -2
- {tlpytools-0.2.11 → tlpytools-0.2.12}/.github/workflows/deploy.yml +1 -1
- {tlpytools-0.2.11 → tlpytools-0.2.12}/CHANGELOG.md +48 -0
- {tlpytools-0.2.11 → tlpytools-0.2.12}/DEVELOPER_GUIDE.md +3 -3
- {tlpytools-0.2.11 → tlpytools-0.2.12}/PKG-INFO +3 -3
- {tlpytools-0.2.11 → tlpytools-0.2.12}/README.md +1 -1
- {tlpytools-0.2.11 → tlpytools-0.2.12}/pyproject.toml +2 -2
- {tlpytools-0.2.11 → tlpytools-0.2.12}/src/tlpytools/__init__.py +1 -1
- {tlpytools-0.2.11 → tlpytools-0.2.12}/src/tlpytools/orca/README.md +40 -9
- {tlpytools-0.2.11 → tlpytools-0.2.12}/src/tlpytools/orca/orchestrator.py +542 -164
- {tlpytools-0.2.11 → tlpytools-0.2.12}/tests/test_orca_resume_cloud.py +539 -0
- tlpytools-0.2.12/uv.lock +5045 -0
- tlpytools-0.2.11/docs/diagrams/README.md +0 -94
- tlpytools-0.2.11/docs/diagrams/orca_cloud_workflow.drawio +0 -157
- tlpytools-0.2.11/docs/diagrams/orca_detailed_steps.drawio +0 -121
- tlpytools-0.2.11/docs/diagrams/orca_file_structure.drawio +0 -88
- tlpytools-0.2.11/docs/diagrams/orca_local_workflow.drawio +0 -127
- tlpytools-0.2.11/docs/diagrams/orca_main_features.drawio +0 -103
- tlpytools-0.2.11/uv.lock +0 -5006
- {tlpytools-0.2.11 → tlpytools-0.2.12}/.env.example +0 -0
- {tlpytools-0.2.11 → tlpytools-0.2.12}/.github/skills/README.md +0 -0
- {tlpytools-0.2.11 → tlpytools-0.2.12}/.github/workflows/code-formatting-pr.yml +0 -0
- {tlpytools-0.2.11 → tlpytools-0.2.12}/.github/workflows/code-formatting.yml +0 -0
- {tlpytools-0.2.11 → tlpytools-0.2.12}/.github/workflows/test.yml +0 -0
- {tlpytools-0.2.11 → tlpytools-0.2.12}/.gitignore +0 -0
- {tlpytools-0.2.11 → tlpytools-0.2.12}/.pre-commit-config.yaml +0 -0
- {tlpytools-0.2.11 → tlpytools-0.2.12}/.python-version +0 -0
- {tlpytools-0.2.11 → tlpytools-0.2.12}/ENVIRONMENT_VARIABLES.md +0 -0
- {tlpytools-0.2.11 → tlpytools-0.2.12}/Makefile +0 -0
- {tlpytools-0.2.11 → tlpytools-0.2.12}/docs/adls_server.md +0 -0
- {tlpytools-0.2.11 → tlpytools-0.2.12}/docs/azure_credential_manager.md +0 -0
- {tlpytools-0.2.11 → tlpytools-0.2.12}/docs/unified_logging.md +0 -0
- {tlpytools-0.2.11 → tlpytools-0.2.12}/requirements.txt +0 -0
- {tlpytools-0.2.11 → tlpytools-0.2.12}/src/examples/batchtask.py +0 -0
- {tlpytools-0.2.11 → tlpytools-0.2.12}/src/examples/data_files/example.csv +0 -0
- {tlpytools-0.2.11 → tlpytools-0.2.12}/src/examples/mydataproject.py +0 -0
- {tlpytools-0.2.11 → tlpytools-0.2.12}/src/examples/readwritedata.py +0 -0
- {tlpytools-0.2.11 → tlpytools-0.2.12}/src/examples/unified_logging.py +0 -0
- {tlpytools-0.2.11 → tlpytools-0.2.12}/src/tlpytools/adls_server.py +0 -0
- {tlpytools-0.2.11 → tlpytools-0.2.12}/src/tlpytools/azure_credential.py +0 -0
- {tlpytools-0.2.11 → tlpytools-0.2.12}/src/tlpytools/config.py +0 -0
- {tlpytools-0.2.11 → tlpytools-0.2.12}/src/tlpytools/data.py +0 -0
- {tlpytools-0.2.11 → tlpytools-0.2.12}/src/tlpytools/data_store.py +0 -0
- {tlpytools-0.2.11 → tlpytools-0.2.12}/src/tlpytools/env_config.py +0 -0
- {tlpytools-0.2.11 → tlpytools-0.2.12}/src/tlpytools/log.py +0 -0
- {tlpytools-0.2.11 → tlpytools-0.2.12}/src/tlpytools/orca/__init__.py +0 -0
- {tlpytools-0.2.11 → tlpytools-0.2.12}/src/tlpytools/orca/__main__.py +0 -0
- {tlpytools-0.2.11 → tlpytools-0.2.12}/src/tlpytools/orca/batch_task_runner.py +0 -0
- {tlpytools-0.2.11 → tlpytools-0.2.12}/src/tlpytools/orca/cli.py +0 -0
- {tlpytools-0.2.11 → tlpytools-0.2.12}/src/tlpytools/orca/orca_model_config_barebone.yaml +0 -0
- {tlpytools-0.2.11 → tlpytools-0.2.12}/src/tlpytools/orca/orca_model_config_example.yaml +0 -0
- {tlpytools-0.2.11 → tlpytools-0.2.12}/src/tlpytools/sql_server.py +0 -0
- {tlpytools-0.2.11 → tlpytools-0.2.12}/tests/README.md +0 -0
- {tlpytools-0.2.11 → tlpytools-0.2.12}/tests/__init__.py +0 -0
- {tlpytools-0.2.11 → tlpytools-0.2.12}/tests/conftest.py +0 -0
- {tlpytools-0.2.11 → tlpytools-0.2.12}/tests/run_tests.py +0 -0
- {tlpytools-0.2.11 → tlpytools-0.2.12}/tests/test_azure_credential.py +0 -0
- {tlpytools-0.2.11 → tlpytools-0.2.12}/tests/test_basic.py +0 -0
- {tlpytools-0.2.11 → tlpytools-0.2.12}/tests/test_core.py +0 -0
- {tlpytools-0.2.11 → tlpytools-0.2.12}/tests/test_orca_cli_batch_options.py +0 -0
- {tlpytools-0.2.11 → tlpytools-0.2.12}/tests/test_orca_integration.py +0 -0
- {tlpytools-0.2.11 → tlpytools-0.2.12}/tests/test_orca_unit.py +0 -0
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
- Primary language: Python (source under `src/`).
|
|
11
11
|
- Build system: `hatchling` via `pyproject.toml`.
|
|
12
12
|
- Dependency manager used in CI/docs: `uv`.
|
|
13
|
-
- Runtime constraint in packaging: Python `>=3.
|
|
13
|
+
- Runtime constraint in packaging: Python `>=3.11, <3.14` (default: 3.12).
|
|
14
14
|
- CI workflows are under `.github/workflows/`:
|
|
15
15
|
- `test.yml` (core + ORCA tests on Ubuntu/Windows)
|
|
16
16
|
- `code-formatting.yml` (Black formatting gate)
|
|
@@ -98,8 +98,8 @@ Interpretation for agent PRs:
|
|
|
98
98
|
|
|
99
99
|
Observed result:
|
|
100
100
|
- Build succeeds and produces:
|
|
101
|
-
- `dist/tlpytools-0.2.
|
|
102
|
-
- `dist/tlpytools-0.2.
|
|
101
|
+
- `dist/tlpytools-0.2.12.tar.gz`
|
|
102
|
+
- `dist/tlpytools-0.2.12-py3-none-any.whl`
|
|
103
103
|
|
|
104
104
|
### 5) Run
|
|
105
105
|
- ORCA CLI (module form):
|
|
@@ -276,7 +276,7 @@ Note: Review .github/workflows/deploy.yml for the automated deployment process.
|
|
|
276
276
|
|
|
277
277
|
### For tlpytools:
|
|
278
278
|
|
|
279
|
-
- **Python version:** Currently requires Python >=3.
|
|
279
|
+
- **Python version:** Currently requires Python >=3.11, <3.14
|
|
280
280
|
- **Test environment:** Requires `.env` file (copy from `.env.example`)
|
|
281
281
|
- **ORCA tests:** Require Azure environment variables to be set
|
|
282
282
|
- **CI/CD:** Uses `uv` for dependency management
|
|
@@ -443,7 +443,7 @@ Run all tests in sequence (not parallel) to avoid resource conflicts:
|
|
|
443
443
|
**Example 3 - Repository Change:**
|
|
444
444
|
```markdown
|
|
445
445
|
**Update to Repository-Specific Notes:**
|
|
446
|
-
- **Python version:** Updated to >=3.
|
|
446
|
+
- **Python version:** Updated to >=3.11, <3.14 for the 0.2.12 release
|
|
447
447
|
- Previous versions used 3.10
|
|
448
448
|
- Update affects CI workflows and local development
|
|
449
449
|
- All dependencies verified compatible with 3.12
|
|
@@ -2,6 +2,54 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to TLPyTools will be documented in this file.
|
|
4
4
|
|
|
5
|
+
## [0.2.12]
|
|
6
|
+
|
|
7
|
+
### Added
|
|
8
|
+
- **`full_cloud_sync` option (top-level key in the ORCA model config YAML, default `false`):**
|
|
9
|
+
- Upload: once the model run completes, every sub-component folder is zipped and uploaded as
|
|
10
|
+
`<component>.zip`; the previous cloud zip is renamed `<component>_<YYYYMMDD_HHMMSS>.bak.zip`
|
|
11
|
+
and moved to `.cloud_model_archive/`
|
|
12
|
+
- Download: with the flag set in the user's local YAML, each local sub-component folder is
|
|
13
|
+
renamed `<component>_<YYYYMMDD_HHMMSS>.bak` as the final cloud version is extracted, and the
|
|
14
|
+
final folders are downloaded along with state, outputs and logs (`inputs` is left alone); this
|
|
15
|
+
only happens once the cloud run has completed, since earlier cloud zips are not final
|
|
16
|
+
|
|
17
|
+
### Fixed
|
|
18
|
+
- **Upload of a scenario with a long folder path failed on Windows:** zipping or extracting a
|
|
19
|
+
sub-component folder that holds paths over 260 characters (for example deep ActivitySim trace
|
|
20
|
+
folders under a long scenario name) failed with `WinError 3`. `zip_directory`,
|
|
21
|
+
`unpack_zip_file` and the component download cleanup now use extended-length paths on Windows
|
|
22
|
+
- **A failed full upload left a cloud scenario that looked valid:** when the run had not started,
|
|
23
|
+
or no cloud copy existed, a failed component or inputs zip still let the state file and outputs
|
|
24
|
+
upload. The upload now stops before uploading outputs, state and config, so the next upload
|
|
25
|
+
starts over as a full upload instead of finding a state file with missing component zips
|
|
26
|
+
- **Repeated `full_cloud_sync` downloads created a new `.bak` each time:** local sub-component
|
|
27
|
+
folders are now replaced only when the cloud run is completed and strictly ahead of the local
|
|
28
|
+
state
|
|
29
|
+
- **A failed full-cloud download could leave a mixed local scenario:** if one component archive
|
|
30
|
+
failed after earlier component folders had been replaced, the local scenario could contain a
|
|
31
|
+
mixture of cloud and pre-existing component data. Full-cloud component replacements are now
|
|
32
|
+
rolled back when any component download or extraction fails, before the sync reports failure
|
|
33
|
+
- **Full-cloud replacement failures could leave stale or mixed local files:** config and state
|
|
34
|
+
files are now downloaded as a pair before either replaces the local copy, and a later config,
|
|
35
|
+
state, or output failure rolls back component replacements and resume output renames
|
|
36
|
+
- **Unsafe cloud paths could escape their target folders:** downloaded `outputs/` and
|
|
37
|
+
`logs/` paths, and paths handled by `download_from_adls_by_pattern()`, are now validated
|
|
38
|
+
against their intended local roots before any file operation; a failed outputs download also
|
|
39
|
+
removes the files it had already written
|
|
40
|
+
- **A failed replacement upload could hide the previous cloud copy:** conflict handling now
|
|
41
|
+
attempts to restore the previous cloud file when the replacement upload fails
|
|
42
|
+
- **Resuming a run on the cloud from a mid-run local scenario could fail:** uploads made after the
|
|
43
|
+
first step only sent outputs and state, and an upload of a mid-run scenario to a cloud folder
|
|
44
|
+
with no remote copy sent only per-step `.cloud_model_archive/` zips, never the main
|
|
45
|
+
`<component>.zip`/`inputs.zip`. Now an upload sends everything while the model run has not
|
|
46
|
+
started, and mid-run sends any sub-component folder (and `inputs`) missing from the cloud in
|
|
47
|
+
addition to new outputs. Whenever a component zip is replaced, the previous cloud copy moves to
|
|
48
|
+
`.cloud_model_archive/<component>_<YYYYMMDD_HHMMSS>.bak.zip` (previously `.cloud_sync_conflict/`),
|
|
49
|
+
matching the `<component>_<YYYYMMDD_HHMMSS>.bak` name used for local component folders. The
|
|
50
|
+
per-step `.cloud_model_archive/<component>_iter<N>.zip` upload, which only occurred on that
|
|
51
|
+
faulty path, is no longer produced
|
|
52
|
+
|
|
5
53
|
## [0.2.11]
|
|
6
54
|
|
|
7
55
|
### Added
|
|
@@ -15,7 +15,7 @@ This guide provides information for developers contributing to and maintaining t
|
|
|
15
15
|
|
|
16
16
|
### Prerequisites
|
|
17
17
|
|
|
18
|
-
- Python 3.
|
|
18
|
+
- Python `>=3.11,<3.14`
|
|
19
19
|
- [uv](https://docs.astral.sh/uv/) (recommended) or pip
|
|
20
20
|
- Git
|
|
21
21
|
|
|
@@ -200,7 +200,7 @@ make check-all
|
|
|
200
200
|
4. Click **"Run workflow"** button
|
|
201
201
|
5. Fill in the required information:
|
|
202
202
|
- **Branch**: Select `main` (or your release branch)
|
|
203
|
-
- **Version number**: Enter the new version (e.g., `0.2.
|
|
203
|
+
- **Version number**: Enter the new version (e.g., `0.2.12`)
|
|
204
204
|
- **Is this a pre-release?**: Check if this is a pre-release version
|
|
205
205
|
|
|
206
206
|
#### 3. Monitor the Release
|
|
@@ -219,7 +219,7 @@ After the workflow completes:
|
|
|
219
219
|
|
|
220
220
|
```bash
|
|
221
221
|
# Verify the package is available on PyPI
|
|
222
|
-
pip install tlpytools==0.2.
|
|
222
|
+
pip install tlpytools==0.2.12 # Replace with your version
|
|
223
223
|
|
|
224
224
|
# Test installation in a fresh environment
|
|
225
225
|
python -c "import tlpytools; print(tlpytools.__version__)"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: tlpytools
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.12
|
|
4
4
|
Summary: TransLink's Python Tools - A comprehensive toolkit for transportation modeling and forecasting
|
|
5
5
|
Project-URL: Homepage, https://github.com/TransLinkForecasting/tlpytools
|
|
6
6
|
Project-URL: Bug Tracker, https://github.com/TransLinkForecasting/tlpytools/issues
|
|
@@ -13,7 +13,7 @@ Classifier: Programming Language :: Python :: 3
|
|
|
13
13
|
Classifier: Programming Language :: Python :: 3.12
|
|
14
14
|
Classifier: Topic :: Scientific/Engineering
|
|
15
15
|
Classifier: Topic :: Scientific/Engineering :: GIS
|
|
16
|
-
Requires-Python: <3.
|
|
16
|
+
Requires-Python: <3.14,>=3.11
|
|
17
17
|
Requires-Dist: azure-core>=1.39
|
|
18
18
|
Requires-Dist: azure-identity-broker>=1.3.0
|
|
19
19
|
Requires-Dist: azure-identity>=1.25
|
|
@@ -75,7 +75,7 @@ TLPyTools provides a suite of utilities and tools designed to support various as
|
|
|
75
75
|
|
|
76
76
|
## Installation
|
|
77
77
|
|
|
78
|
-
> **Note**: TLPyTools requires Python 3.
|
|
78
|
+
> **Note**: TLPyTools requires Python `>=3.11,<3.14`. ActivitySim and PopulationSim are available for development installations using uv sync.
|
|
79
79
|
|
|
80
80
|
### Using uv (Recommended)
|
|
81
81
|
|
|
@@ -8,7 +8,7 @@ TLPyTools provides a suite of utilities and tools designed to support various as
|
|
|
8
8
|
|
|
9
9
|
## Installation
|
|
10
10
|
|
|
11
|
-
> **Note**: TLPyTools requires Python 3.
|
|
11
|
+
> **Note**: TLPyTools requires Python `>=3.11,<3.14`. ActivitySim and PopulationSim are available for development installations using uv sync.
|
|
12
12
|
|
|
13
13
|
### Using uv (Recommended)
|
|
14
14
|
|
|
@@ -4,10 +4,10 @@ build-backend = "hatchling.build"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "tlpytools"
|
|
7
|
-
version = "0.2.
|
|
7
|
+
version = "0.2.12"
|
|
8
8
|
description = "TransLink's Python Tools - A comprehensive toolkit for transportation modeling and forecasting"
|
|
9
9
|
readme = "README.md"
|
|
10
|
-
requires-python = ">=3.
|
|
10
|
+
requires-python = ">=3.11,<3.14"
|
|
11
11
|
# license = { file = "LICENSE.txt" }
|
|
12
12
|
authors = [
|
|
13
13
|
{ name = "Forecasting TransLink", email = "forecasting@translink.ca" }
|
|
@@ -310,6 +310,11 @@ operational_mode:
|
|
|
310
310
|
adls_container: "raw"
|
|
311
311
|
adls_folder: "orca_scenarios"
|
|
312
312
|
|
|
313
|
+
# Optional: upload every sub-component folder as a zip when the model run completes, and
|
|
314
|
+
# back up + replace local sub-component folders on download (default false; see
|
|
315
|
+
# "Full Cloud Sync" under Cloud Synchronization Behavior)
|
|
316
|
+
full_cloud_sync: false
|
|
317
|
+
|
|
313
318
|
# Model metadata (optional - can be set via orchestrator or in config)
|
|
314
319
|
model_metadata:
|
|
315
320
|
model_year: 2033
|
|
@@ -564,6 +569,7 @@ scenario_folder/ # Scenario name usually starts with db_
|
|
|
564
569
|
├── outputs/ # Model outputs
|
|
565
570
|
├── activitysim/ # Sub-component folder
|
|
566
571
|
├── quetzal/ # Sub-component folder
|
|
572
|
+
├── activitysim_<date>_<time>.bak/ # Local backup made by a full_cloud_sync download (optional)
|
|
567
573
|
└── .cloud_sync_conflict/ # Conflict resolution
|
|
568
574
|
|
|
569
575
|
# Non-scenario specific logs
|
|
@@ -606,10 +612,13 @@ The orchestrator compares state files to determine sync eligibility:
|
|
|
606
612
|
- ✅ Upload only if local state is ahead of or equal to remote state
|
|
607
613
|
- ❌ Upload blocked if remote state is ahead (prevents overwriting newer data)
|
|
608
614
|
- ✅ A state rewound by a resume has a higher `resume_generation` and is allowed to replace the remote state
|
|
609
|
-
- If remote doesn't exist: Upload everything (inputs, components, outputs, config, state)
|
|
610
|
-
- If remote exists: Upload
|
|
615
|
+
- If the model run has not started (no completed steps), or the remote doesn't exist: Upload everything (inputs, components, outputs, config, state), even when a cloud copy already exists
|
|
616
|
+
- If the model run is in progress and the remote exists: Upload state, new outputs files and logs, plus any sub-component zip (and `inputs.zip`) missing in the cloud, so a scenario resumed from a checkpoint can start on a fresh cloud node. Zips already in the cloud are not replaced
|
|
617
|
+
- If the run has completed and `full_cloud_sync: true` is set in the YAML: also upload every sub-component folder as `<component>.zip`
|
|
618
|
+
- When a component zip is replaced, the previous cloud zip is renamed `<component>_<YYYYMMDD_HHMMSS>.bak.zip` and moved to `.cloud_model_archive/` (mirrors the local `<component>_<YYYYMMDD_HHMMSS>.bak` folder rename used on download)
|
|
619
|
+
- If a full upload (remote missing, or run not started) fails to zip or upload a component or `inputs`, the sync returns failure and does not upload outputs, state or config, so the incomplete cloud copy is not mistaken for a usable scenario; the next upload starts over as a full upload
|
|
611
620
|
- Outputs already present in the cloud are skipped, except archives regenerated in the current session: the cloud copy is moved to `.cloud_sync_conflict/` and the new file is uploaded
|
|
612
|
-
- A failed upload (outputs, or config/state) makes the sync return failure; if the existing cloud file cannot be moved to `.cloud_sync_conflict
|
|
621
|
+
- A failed upload (outputs, or config/state) makes the sync return failure; if the existing cloud file cannot be moved to `.cloud_sync_conflict/` (or `.cloud_model_archive/` for component zips), it is never overwritten
|
|
613
622
|
|
|
614
623
|
**Download Rules:**
|
|
615
624
|
- ✅ Barebone configs always allow download (will be overwritten completely)
|
|
@@ -617,23 +626,41 @@ The orchestrator compares state files to determine sync eligibility:
|
|
|
617
626
|
- ❌ Download blocked if local state is ahead (prevents overwriting local progress)
|
|
618
627
|
- If local is barebone or empty: Download everything from remote
|
|
619
628
|
- If local exists: Download only state and new outputs files
|
|
620
|
-
-
|
|
629
|
+
- If local exists, `full_cloud_sync: true` is set in the local YAML, and the cloud run is completed and strictly ahead of local: each local sub-component folder is renamed `<component>_<YYYYMMDD_HHMMSS>.bak` and the final sub-component folders are downloaded along with state, outputs and logs (`inputs` is not touched). While the cloud run is in progress, or when local already matches the cloud, local sub-component folders are left alone
|
|
630
|
+
- A failed component, config/state or output download makes the sync return failure (re-run to fetch what is missing). During a full cloud sync, if any component archive, config/state, or output operation fails after earlier replacements, component replacements and resume output renames are rolled back so the local scenario is not left with mixed data.
|
|
631
|
+
- Config and state files are downloaded as a pair; neither replaces the local copy until both are available, and if replacing either fails both previous files are restored.
|
|
632
|
+
- Downloaded paths (`outputs/`, `logs/`, and generic pattern downloads) are checked to stay within their intended local folders; unsafe cloud paths are rejected. A failed outputs download removes the files it already wrote.
|
|
633
|
+
- If a replacement upload fails after the existing cloud file was archived, the sync attempts to restore the previous canonical cloud copy.
|
|
634
|
+
|
|
635
|
+
#### Full Cloud Sync (`full_cloud_sync`)
|
|
636
|
+
|
|
637
|
+
An optional top-level key in the model config YAML, default `false` (also `false` when the key is missing):
|
|
638
|
+
|
|
639
|
+
```yaml
|
|
640
|
+
full_cloud_sync: true
|
|
641
|
+
```
|
|
642
|
+
|
|
643
|
+
- Upload: once the model run completes, every sub-component folder in `sub_components` is zipped and uploaded as `<component>.zip`; previous cloud zips go to `.cloud_model_archive/` as `<component>_<YYYYMMDD_HHMMSS>.bak.zip`
|
|
644
|
+
- Download: local sub-component folders are backed up as `<component>_<YYYYMMDD_HHMMSS>.bak` and replaced by the final cloud folders (conditions above)
|
|
645
|
+
- Only a boolean `true` (or the strings "true"/"yes"/"1") enables it; a quoted `"false"` is read as false
|
|
621
646
|
|
|
622
647
|
#### Selective File Synchronization
|
|
623
648
|
|
|
624
|
-
**When Remote Doesn't Exist (
|
|
649
|
+
**When Remote Doesn't Exist, or the Model Run Has Not Started (Full Upload):**
|
|
625
650
|
- Sub-component folders (zipped before upload)
|
|
626
651
|
- Inputs directory (zipped before upload)
|
|
627
652
|
- All outputs files
|
|
628
653
|
- Configuration and state files
|
|
629
654
|
- Logs subdirectory files (performance CSVs and other logs)
|
|
630
655
|
|
|
631
|
-
**When Both Local and Remote Exist:**
|
|
656
|
+
**When Both Local and Remote Exist and the Model Run Is in Progress:**
|
|
632
657
|
- Only state files (to synchronize progress tracking)
|
|
633
658
|
- Only new outputs files (model results from completed steps)
|
|
634
659
|
- Logs subdirectory files (performance data with timestamps)
|
|
635
|
-
- Sub-component folders are
|
|
636
|
-
|
|
660
|
+
- Sub-component folders (and `inputs`) that are missing in the cloud, so resumed runs can execute from a fresh node; sub-component zips already in the cloud are not re-uploaded, unless `full_cloud_sync` applies at completion
|
|
661
|
+
|
|
662
|
+
**Long Paths:**
|
|
663
|
+
- Zipping and extracting use extended-length paths on Windows, so sub-component folders with paths over 260 characters (for example deep trace folders) are supported even when Windows long paths are disabled
|
|
637
664
|
|
|
638
665
|
**Download Behavior:**
|
|
639
666
|
- Component zip files are extracted into a staging folder and swapped in, so a corrupt archive never replaces a working component
|
|
@@ -641,7 +668,7 @@ The orchestrator compares state files to determine sync eligibility:
|
|
|
641
668
|
- Logs subdirectory files are downloaded (performance data and logs)
|
|
642
669
|
- Outputs keep their path below `outputs/`; an existing local file is kept, except that a local pre-resume archive is renamed to match a cloud resume backup (`<name>_<timestamp>_bak.<ext>`) so the regenerated archive downloads
|
|
643
670
|
- Conflict files are moved to `.cloud_sync_conflict/` folder
|
|
644
|
-
- Files in `.cloud_sync_conflict/` are always skipped during sync
|
|
671
|
+
- Files in `.cloud_sync_conflict/` and `.cloud_model_archive/` are always skipped during sync
|
|
645
672
|
|
|
646
673
|
#### Barebone Scenario Handling
|
|
647
674
|
Barebone configs are minimal configurations created when default templates are unavailable:
|
|
@@ -919,6 +946,10 @@ python -m tlpytools.orca --action init_model \
|
|
|
919
946
|
- Or manually resolve by backing up and choosing which state to keep
|
|
920
947
|
- **Debug**: Check `total_steps_completed` in both local and remote state files
|
|
921
948
|
|
|
949
|
+
6a. **Upload fails with `Failed to create zip for <component>` or `Component or inputs upload failed`**:
|
|
950
|
+
- **Cause**: A full upload (no cloud copy, or the run has not started) could not zip or upload a sub-component folder or `inputs`. When this happens the state, config and outputs are deliberately not uploaded, so the cloud copy is not mistaken for a complete scenario
|
|
951
|
+
- **Solution**: Read the error above it in `{scenario}/logs/` (for example a locked or unreadable file), fix it, and upload again; the next upload repeats the full upload. Folder paths over 260 characters on Windows are handled automatically (`WinError 3` on a zip means something else is wrong with the path)
|
|
952
|
+
|
|
922
953
|
7. **Barebone config upload blocked**:
|
|
923
954
|
- **Error**: `Barebone config detected - upload not allowed`
|
|
924
955
|
- **Cause**: Attempting to upload incomplete/minimal configuration
|