Skip to content

Commit

Permalink
Upgrade to UDK-Lite 1.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
tuokri committed Nov 13, 2023
1 parent 28e14fc commit 5ea70ec
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 34 deletions.
31 changes: 3 additions & 28 deletions .github/workflows/udk-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on: [ workflow_call ]
# TODO: unify GH env vars with local UDKTests env vars somehow.
env:
UDK_LITE_CACHE: ${{ github.workspace }}/tests/UDKTests/.cache/
UDK_LITE_TAG: 1.0.0
UDK_LITE_TAG: 1.0.1
# Timeout for individual steps in the test script. Not a total timeout.
UDK_TEST_TIMEOUT: 300
PYTHONUNBUFFERED: 1
Expand Down Expand Up @@ -50,33 +50,8 @@ jobs:
- run: python --version

- name: Run UDK build and test script
timeout-minutes: 2
run: python .\tests\UDKTests\setup_udk_build_env.py --use-shell

- name: TODO TEST
timeout-minutes: 2
if: always()
run: .\tests\UDKTests\UDK-Lite\Binaries\Win64\UDK.exe make -useunpublished

- name: Print Application Event Log
shell: powershell
run: Get-EventLog -LogName Application | format-table -wrap
if: always()

- name: Print System Event Log
shell: powershell
run: Get-EventLog -LogName Application | format-table -wrap
if: always()

- name: Print Windows PowerShell Event Log
shell: powershell
run: Get-EventLog -LogName Windows PowerShell | format-table -wrap
if: always()

- name: Print Security Event Log
shell: powershell
run: Get-EventLog -LogName Security | format-table -wrap
if: always()
timeout-minutes: 5
run: python .\tests\UDKTests\setup_udk_build_env.py

- name: Archive UDK build and test logs
uses: actions/upload-artifact@v3
Expand Down
2 changes: 1 addition & 1 deletion tests/UDKTests/defaults.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
# along with this program. If not, see <https://www.gnu.org/licenses/>.

UDK_TEST_TIMEOUT = 300
UDK_LITE_TAG = "1.0.0"
UDK_LITE_TAG = "1.0.1"
UDK_LITE_ROOT = "./UDK-Lite/"
UDK_LITE_RELEASE_URL = (f"https://github.com/tuokri/UDK-Lite/releases/download/{UDK_LITE_TAG}/UDK"
f"-Lite-{UDK_LITE_TAG}.7z")
Expand Down
11 changes: 6 additions & 5 deletions tests/UDKTests/setup_udk_build_env.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ async def run_udk_build(
) -> int:
print("starting UDK build phase")

udk_exe = (udk_lite_root / "Binaries/Win64/UDK.exe").resolve()
udk_exe = (udk_lite_root / "Binaries/Win64/UDK.com").resolve()

watcher.state = State.BUILDING

Expand Down Expand Up @@ -313,7 +313,7 @@ async def run_udk_server(
) -> int:
print("starting UDK testing phase")

udk_exe = (udk_lite_root / "Binaries/Win64/UDK.exe").resolve()
udk_exe = (udk_lite_root / "Binaries/Win64/UDK.com").resolve()

watcher.state = State.TESTING
if use_shell:
Expand Down Expand Up @@ -357,8 +357,8 @@ async def run_udk_server(
return test_ec


def print_udk_processes():
while True:
def print_udk_processes(event: threading.Event):
while not event.is_set():
sleep_time = 0.01
for proc in psutil.process_iter():
if "udk" in proc.name().lower():
Expand Down Expand Up @@ -529,6 +529,7 @@ async def main():

udk_print_spam_thread = threading.Thread(
target=print_udk_processes,
args=(poker_event,),
)
udk_print_spam_thread.start()

Expand Down Expand Up @@ -602,7 +603,7 @@ async def main():
if ec != 0:
raise RuntimeError(f"UDK.exe error (sum of all exit codes): {ec}")

udk_print_spam_thread.join()
udk_print_spam_thread.join(timeout=5)

print(f"finished with {len(watcher.warnings)} warnings")
print(f"finished with {len(watcher.errors)} errors")
Expand Down

0 comments on commit 5ea70ec

Please sign in to comment.