Spaces:
Running
Running
Commit History
-
Bind the space push credentials to the Hugging Face URL
An unbound http.extraheader reaches every host that git lfs calls, including the storage host that Hugging Face names for each upload. That host refuses a signed URL that also carries an Authorization header, so every upload of a new LFS file failed. The header is now bound to the Hugging Face URL, which leaves the uploads unauthenticated apart from their signature.d5b4b92 -
Choose the results directory by write test, and harden the sync workflow
Replace the /data existence check with a write test over a candidate list, so the app runs whether persistent storage is absent, attached and writable, or present and not writable. Raise where no candidate accepts a write, so the container fails at startup instead of failing every job. Route CMUTS_RESULTS_DIR through the same test. Run the results cleanup on an interval in a background thread rather than once at startup, so a server that holds persistent storage keeps pruning. Print the chosen directory at startup. In the workflow, restrict the token to read access, move the Hugging Face credentials from the push URL into an authorization header, and retry a build-status call that does not answer. Add a step that runs the image against no /data, a writable /data, and a read-only /data, and checks the directory it resolves. In the smoke script, add timeouts and bounded retries to the one-shot calls, retry a status poll that does not answer, and reject an empty job URL. Declare app_p…1a77429
-
Gate the deployment on smoke checks before and after the push
scripts/smoke.sh submits each bundled example to a running space, waits for its pipeline to finish, and checks that its report answers. The sync workflow now builds the image on the runner with layer caching and runs the script against it; only on success does it push to Hugging Face, wait for the build there, and run the script once more against the deployment.938bee0 -
Fail the sync workflow when the space build fails
The push returns before Hugging Face builds, so the workflow now polls the space API until the pushed commit reaches a terminal stage, passing on RUNNING and failing on an error stage or a timeout. The push URL also names the account the token belongs to.e1bf71c -
Rebuild the space on the cmuts 2 command line
The option form derives from each subcommand's --dump-options, the pipeline runs as subprocess calls to cmuts align, hmm, sub, div, norm, and csv, and each results page proxies a live cmuts plot server. The Sync HF Space workflow deploys main to Hugging Face, and the pin workflow in DasLab/cmuts keeps the Dockerfile's CMUTS_SHA current. The previous space lives on the v1 branch.3b54ff3