Skip to content

fix(logging): surface logs emitted by the rattler_upload crate#5979

Merged
baszalmstra merged 1 commit intoprefix-dev:mainfrom
dhirschfeld:enable-upload-logs
May 5, 2026
Merged

fix(logging): surface logs emitted by the rattler_upload crate#5979
baszalmstra merged 1 commit intoprefix-dev:mainfrom
dhirschfeld:enable-upload-logs

Conversation

@dhirschfeld
Copy link
Copy Markdown
Contributor

@dhirschfeld dhirschfeld commented Apr 29, 2026

Description

Currently no logs are emitted by pixi upload at all:

❯ pixi upload cloudsmith -vvv --owner $OWNER--repo conda --api-key $CLOUDSMITH_API_KEY ./output/noarch/*.conda
DEBUG pixi_config: Loading config from /etc/pixi/config.toml
DEBUG pixi_config: Loaded config from: /etc/pixi/config.toml
DEBUG pixi_config: Loading config from ~/.config/pixi/config.toml
DEBUG pixi_config: Loading config from ~/.pixi/config.toml

❯

...despite logs being emitted by rattler_upload:
https://github.com/conda/rattler/blob/d800817f6632c6d6c00e87f5dcda0226e87a3239/crates/rattler_upload/src/upload/mod.rs#L340-L343


How Has This Been Tested?

Manually. Results below - logs are now coming through from rattler-build:

❯ pixi-dev upload cloudsmith -vvv --owner acme --repo conda --api-key $CLOUDSMITH_API_KEY ./output/noarch/*.conda
DEBUG pixi_config: Loading config from /etc/pixi/config.toml
DEBUG pixi_config: Loaded config from: /etc/pixi/config.toml
DEBUG pixi_config: Loading config from ~/.config/pixi/config.toml
DEBUG pixi_config: Loading config from ~/.pixi/config.toml
DEBUG rattler_upload::upload::cloudsmith: requesting upload slot for agent-skill-async-python-0.0.12-h4616a5c_0.conda
DEBUG rattler_upload::upload::cloudsmith: upload slot assigned for agent-skill-async-python-0.0.12-h4616a5c_0.conda: identifier=hostExFDdOaR
DEBUG rattler_upload::upload::cloudsmith: uploading agent-skill-async-python-0.0.12-h4616a5c_0.conda (single-part) to pre-signed URL
DEBUG rattler_upload::upload::cloudsmith: single-part upload complete for agent-skill-async-python-0.0.12-h4616a5c_0.conda
 INFO rattler_upload::upload::cloudsmith: creating conda package in acme/conda
 INFO rattler_upload::upload: Package created: slug_perm=nrFPZalwp4BE, slug=agent-skill-async-python-0012-h461-a8cg
DEBUG rattler_upload::upload::cloudsmith: requesting upload slot for agent-skill-cachetools-0.0.12-h4616a5c_0.conda
DEBUG rattler_upload::upload::cloudsmith: upload slot assigned for agent-skill-cachetools-0.0.12-h4616a5c_0.conda: identifier=A9CXkcOoc6Vb
DEBUG rattler_upload::upload::cloudsmith: uploading agent-skill-cachetools-0.0.12-h4616a5c_0.conda (single-part) to pre-signed URL
DEBUG rattler_upload::upload::cloudsmith: single-part upload complete for agent-skill-cachetools-0.0.12-h4616a5c_0.conda
 INFO rattler_upload::upload::cloudsmith: creating conda package in acme/conda
 INFO rattler_upload::upload: Package created: slug_perm=78i5KfjlTBzh, slug=agent-skill-cachetools-0012-h4616a-0rmw

AI Disclosure

Opus 4.7 reliably informs me that this should be sufficient to surface logs from the rattler_upload crate.

  • This PR contains AI-generated content.
    • I have tested any AI-generated content in my PR.
    • I take responsibility for any AI-generated content in my PR.

Checklist:

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have added sufficient tests to cover my changes.
  • I have verified that changes that would impact the JSON schema have been made in schema/model.py.

Fixes #5907

@dhirschfeld dhirschfeld changed the title Surface logs emitted by the rattler_upload crate fix(logging): surface logs emitted by the rattler_upload crate Apr 29, 2026
@dhirschfeld
Copy link
Copy Markdown
Contributor Author

It's late down this way so I won't get to test tonight. Can try and build and test tomorrow...

@dhirschfeld
Copy link
Copy Markdown
Contributor Author

 │ │ error: component download failed for rust-std-x86_64-unknown-linux-gnu
 │ │ Caused by:
 │ │     0: could not rename 'downloaded' file from '/home/runner/.rustup/downloads/663f4ab7945b392d5e5294dec1b050a66820a20e86f084ec37eeb0f2f7ff5569.partial' to
 │ │  '/home/runner/.rustup/downloads/663f4ab7945b392d5e5294dec1b050a66820a20e86f084ec37eeb0f2f7ff5569': No such file or directory (os error 2)
 │ │     1: No such file or directory (os error 2)

Will kick CI...

@dhirschfeld
Copy link
Copy Markdown
Contributor Author

Will kick CI...

It seems I can't rerun the CI, so might have to let a maintainer do that

@baszalmstra
Copy link
Copy Markdown
Contributor

Dont worry about the failing linux CI, its not related to your PR. Please let me know if your manual test works!

@dhirschfeld dhirschfeld force-pushed the enable-upload-logs branch from f10b92a to ee69ae8 Compare May 4, 2026 21:21
@dhirschfeld
Copy link
Copy Markdown
Contributor Author

dhirschfeld commented May 4, 2026

Dont worry about the failing linux CI, its not related to your PR. Please let me know if your manual test works!

Seems to be working - logs are now coming through from rattler-build:

❯ pixi-dev upload cloudsmith -vvv --owner acme --repo conda --api-key $CLOUDSMITH_API_KEY ./output/noarch/*.conda
DEBUG pixi_config: Loading config from /etc/pixi/config.toml
DEBUG pixi_config: Loaded config from: /etc/pixi/config.toml
DEBUG pixi_config: Loading config from ~/.config/pixi/config.toml
DEBUG pixi_config: Loading config from ~/.pixi/config.toml
DEBUG rattler_upload::upload::cloudsmith: requesting upload slot for agent-skill-async-python-0.0.12-h4616a5c_0.conda
DEBUG rattler_upload::upload::cloudsmith: upload slot assigned for agent-skill-async-python-0.0.12-h4616a5c_0.conda: identifier=hostExFDdOaR
DEBUG rattler_upload::upload::cloudsmith: uploading agent-skill-async-python-0.0.12-h4616a5c_0.conda (single-part) to pre-signed URL
DEBUG rattler_upload::upload::cloudsmith: single-part upload complete for agent-skill-async-python-0.0.12-h4616a5c_0.conda
 INFO rattler_upload::upload::cloudsmith: creating conda package in acme/conda
 INFO rattler_upload::upload: Package created: slug_perm=nrFPZalwp4BE, slug=agent-skill-async-python-0012-h461-a8cg
DEBUG rattler_upload::upload::cloudsmith: requesting upload slot for agent-skill-cachetools-0.0.12-h4616a5c_0.conda
DEBUG rattler_upload::upload::cloudsmith: upload slot assigned for agent-skill-cachetools-0.0.12-h4616a5c_0.conda: identifier=A9CXkcOoc6Vb
DEBUG rattler_upload::upload::cloudsmith: uploading agent-skill-cachetools-0.0.12-h4616a5c_0.conda (single-part) to pre-signed URL
DEBUG rattler_upload::upload::cloudsmith: single-part upload complete for agent-skill-cachetools-0.0.12-h4616a5c_0.conda
 INFO rattler_upload::upload::cloudsmith: creating conda package in acme/conda
 INFO rattler_upload::upload: Package created: slug_perm=78i5KfjlTBzh, slug=agent-skill-cachetools-0012-h4616a-0rmw

@baszalmstra baszalmstra merged commit ea6e969 into prefix-dev:main May 5, 2026
40 checks passed
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.

More logging for pixi upload

2 participants