Skip to content

Commit e480776

Browse files
authored
Revert "fix payload in workflows (#331)"
This reverts commit 015607b.
1 parent 7e867a5 commit e480776

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

.github/workflows/amd_workflow.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ jobs:
3939
# Apply mask to the extracted content
4040
echo "::add-mask::$PAYLOAD"
4141
42-
# Compress and base64 encode the payload to match what the Python script expects
43-
echo "$PAYLOAD" | python3 -c "import sys, zlib, base64; print(base64.b64encode(zlib.compress(sys.stdin.read().encode('utf-8'))).decode('ascii'))" > payload.json
42+
# Now write to file (won't be logged since it's masked)
43+
echo "$PAYLOAD" > payload.json
4444
4545
- name: Set venv directory based on runner
4646
run: |

.github/workflows/nvidia_workflow.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ jobs:
4646
# Apply mask to the extracted content
4747
echo "::add-mask::$PAYLOAD"
4848
49-
# Compress and base64 encode the payload to match what the Python script expects
50-
echo "$PAYLOAD" | python3 -c "import sys, zlib, base64; print(base64.b64encode(zlib.compress(sys.stdin.read().encode('utf-8'))).decode('ascii'))" > payload.json
49+
# Now write to file (won't be logged since it's masked)
50+
echo "$PAYLOAD" > payload.json
5151
5252
- name: Install uv
5353
uses: astral-sh/setup-uv@v3

scripts/github_test_payload.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@
44
"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}\")"
55
},
66
"main": "main.py",
7-
"mode": "test"
7+
"mode": "script"
88
}

0 commit comments

Comments
 (0)