Skip to content

Add ability to push local (to the server) files - #91

Open
Yannicked wants to merge 14 commits into
iterorganization:developfrom
Yannicked:feature/v1.3-local-push-clean
Open

Add ability to push local (to the server) files#91
Yannicked wants to merge 14 commits into
iterorganization:developfrom
Yannicked:feature/v1.3-local-push-clean

Conversation

@Yannicked

@Yannicked Yannicked commented Jun 18, 2026

Copy link
Copy Markdown
Collaborator

Depends on #83, #88 and #90

@olivhoenen olivhoenen linked an issue Jul 1, 2026 that may be closed by this pull request
@Yannicked
Yannicked force-pushed the feature/v1.3-local-push-clean branch from 9318115 to 30d7ec1 Compare July 15, 2026 07:43
@olivhoenen olivhoenen mentioned this pull request Jul 31, 2026
@Yannicked
Yannicked force-pushed the feature/v1.3-local-push-clean branch 2 times, most recently from 29dbf71 to 591cd39 Compare August 3, 2026 12:43
@Yannicked
Yannicked force-pushed the feature/v1.3-local-push-clean branch from 591cd39 to 551b750 Compare August 3, 2026 12:44
@Yannicked
Yannicked marked this pull request as ready for review August 4, 2026 08:10
File types are already assigned at manifest time and preserved by
_file_data_for_partition, so this pass was a no-op for correctly
ingested simulations. Worse, the directory heuristic could promote a
plain FILE entry living next to IMAS data to IMAS, after which the
server rewrites its URI. It also opened every .nc file and scanned
every parent directory on a shared filesystem.
Hand-rolled requests.post/requests.get bypassed the auth gating on
self._server_auth, the gzip compression for large simulations
payloads, and the negotiated self._api_url.
@Yannicked
Yannicked force-pushed the feature/v1.3-local-push-clean branch from af759ca to cd097d5 Compare August 4, 2026 12:12
@Yannicked

Copy link
Copy Markdown
Collaborator Author

Add tests

@olivhoenen olivhoenen left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. Need better test coverage of the new functionality.

  2. The CLI does not happily accept default remote:

(venv) [hoeneno@98dci4-srv-1005 SimDB]$ (feature/v1.3-local-push-clean) simdb sim push_local --add-watcher --timeout 300.0 131062/4
Usage: simdb sim push_local [OPTIONS] [REMOTE] SIM_ID
Try 'simdb sim push_local --help' for help.

Error: Missing argument 'SIM_ID'.

while specifying the remote name (iterprod is my default) works as expected with correct API negotiation message

(venv) [hoeneno@98dci4-srv-1005 SimDB]$ (feature/v1.3-local-push-clean) simdb sim push_local --add-watcher --timeout 300.0 iterprod 131062/4
Error: 'push_local_simulation' is not supported by the negotiated API version 'v1.2'. It requires one of: v1.3.

add_watcher: bool,
timeout: float,
):
"""Push the simulation with the given SIM_ID (UUID or alias) to the REMOTE."""

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the exact same description as push command, would be nice that the help gives users an idea of the difference between the two CLI commands

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update CLI To Support New Upload Workflow

2 participants