Skip to content

Comments

[pull] main from SwanHubX:main#142

Merged
pull[bot] merged 3 commits intoxj63:mainfrom
SwanHubX:main
Nov 17, 2025
Merged

[pull] main from SwanHubX:main#142
pull[bot] merged 3 commits intoxj63:mainfrom
SwanHubX:main

Conversation

@pull
Copy link

@pull pull bot commented Nov 17, 2025

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

Zeyi-Lin and others added 3 commits November 17, 2025 20:17
* Add tests for trace_metrics and update __all__

Added unit tests for the trace_metrics function in test_upload.py, covering batching, pending state, and status code handling. Also updated the __all__ list in upload.py to include trace_metrics and MetricDict for proper module exports.

* Add delay between metric upload batches

Introduced a 1-second delay between batches when uploading metrics in trace_metrics to avoid potential server overload. Also updated DataPorter to remove unused LogModel import and changed _filter_log_by_epoch return type to bool.

* Add timing assertion to batch upload test

Introduced timing checks in the test for batch metric uploads to ensure the process takes longer than 3 seconds, improving test coverage for upload duration.
Introduced SWANLAB_WEBHOOK_VALUE environment variable to allow sending custom content with webhook notifications. Updated webhook logic to include this value if present and adjusted metadata typing for exp_url to allow None.
@pull pull bot locked and limited conversation to collaborators Nov 17, 2025
@pull pull bot added the ⤵️ pull label Nov 17, 2025
@pull pull bot merged commit 5cd2871 into xj63:main Nov 17, 2025
5 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants