-
Notifications
You must be signed in to change notification settings - Fork 22
Revert "fix payload in workflows" #341
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -46,8 +46,8 @@ jobs: | |
| # Apply mask to the extracted content | ||
| echo "::add-mask::$PAYLOAD" | ||
|
|
||
| # Compress and base64 encode the payload to match what the Python script expects | ||
| echo "$PAYLOAD" | python3 -c "import sys, zlib, base64; print(base64.b64encode(zlib.compress(sys.stdin.read().encode('utf-8'))).decode('ascii'))" > payload.json | ||
| # Now write to file (won't be logged since it's masked) | ||
| echo "$PAYLOAD" > payload.json | ||
|
Comment on lines
+49
to
+50
|
||
|
|
||
| - name: Install uv | ||
| uses: astral-sh/setup-uv@v3 | ||
|
|
||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -4,5 +4,5 @@ | |||||
| "main.py": "import torch\n\nprint(f\"CUDA available: {torch.cuda.is_available()}\")\nprint(f\"PyTorch version: {torch.__version__}\")\n\nif torch.cuda.is_available():\n x = torch.randn(5, device='cuda')\n print(f\"Random tensor on GPU: {x}\")" | ||||||
| }, | ||||||
| "main": "main.py", | ||||||
| "mode": "test" | ||||||
| "mode": "script" | ||||||
|
||||||
| "mode": "script" | |
| "mode": "test" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removing the compression and base64 encoding may break compatibility with Python scripts that expect the compressed format. Verify that the consuming Python scripts can handle raw JSON payloads or update them accordingly.