Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
ac3c6ac
Add a second way to invoke a halt
MichaelHudgins Aug 16, 2024
1cb3753
Make a better placeholder
MichaelHudgins Aug 16, 2024
c8984a6
Attempt to clean up connection
MichaelHudgins Aug 19, 2024
ee505e4
Fix typo in input
MichaelHudgins Aug 19, 2024
de6430c
Nailing down if condition
MichaelHudgins Aug 19, 2024
1333045
Print the run attempt
MichaelHudgins Aug 19, 2024
1ac8960
Add a wait always tag varaint
MichaelHudgins Aug 19, 2024
851c061
Add new connection strings
MichaelHudgins Aug 20, 2024
a0855c8
Change the default tags for halting
MichaelHudgins Aug 20, 2024
41a34ff
Merge branch 'main' into wait-part-2
MichaelHudgins Aug 20, 2024
aa222ac
Switch tags again
MichaelHudgins Aug 20, 2024
6affb6d
rename the test step
MichaelHudgins Aug 20, 2024
588703e
Add arm64 to the wait test
MichaelHudgins Aug 21, 2024
fa60a15
Use the GITHUB_ACTION_PATH to specify the correct path
MichaelHudgins Aug 21, 2024
0e7a26d
Wait for connection updates to string
MichaelHudgins Aug 26, 2024
38df783
Check if we have access to the PR number
MichaelHudgins Aug 26, 2024
be0c00b
Chnage how we pass in path
MichaelHudgins Aug 26, 2024
65d1055
Don't fail fast
MichaelHudgins Aug 26, 2024
e3bd4b2
remove arm
MichaelHudgins Aug 26, 2024
090bc30
Update user side communicaiton
MichaelHudgins Aug 26, 2024
1bad415
Grab current status of labels via curl and jq
MichaelHudgins Aug 27, 2024
9e40bb0
Merge branch 'main' into wait-part-2
MichaelHudgins Aug 27, 2024
52ddb25
Update action.yaml
MichaelHudgins Aug 27, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions actions/ci_connection/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ runs:
echo "Should halt input: ${{ inputs.halt-dispatch-input }}"
echo "Reattempt count: ${{ github.run_attempt }}"
echo "PR number ${{ github.event.number }}"
# Grab the current status of labels
curl -s -H "Accept: application/vnd.github+json" \
"https://api.github.com/repos/${{ inputs.repository }}/pulls/${{ github.event.number }}/labels"

- name: Halt For Connection
shell: bash
if: |
Expand Down
14 changes: 13 additions & 1 deletion actions/ci_connection/notify_connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

import time
import threading
import os
import subprocess
from multiprocessing.connection import Client

Expand Down Expand Up @@ -42,8 +43,19 @@ def timer(conn):
timer_thread.start()

print("Entering interactive bash session")

# Print the "next" commands to be run
# TODO: actually get this data from workflow files
print("The next command that would have run is\n\n")

print("PUT DEBUG COMMAND HERE\n")
# Set the hardcoded envs for testing purposes
# TODO: sync env vars
sub_env = os.environ.copy()
sub_env["DEMO"] = "someval"

# Enter interactive bash session
subprocess.run(["/bin/bash", "-i"])
subprocess.run(["/bin/bash", "-i"], env=sub_env)

print("Exiting interactive bash session")
with lock:
Expand Down
4 changes: 2 additions & 2 deletions actions/ci_connection/wait_for_connection.py
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@
import sys

last_time = time.time()
timeout = 600 # 10 minutes for initial connection
timeout = 1800 # 30 minutes for initial connection
keep_alive_timeout = (
900 # 30 minutes for keep-alive if no closed message (allow for reconnects)
900 # 15 minutes for keep-alive if no closed message (allow for reconnects)
)


Expand Down