Skip to content

Commit 2aabad4

Browse files
authored
Merge pull request #267 from JdeRobot/javizqh-patch-1
Javizqh patch 1
2 parents 887e602 + c1b5325 commit 2aabad4

3 files changed

Lines changed: 76 additions & 3 deletions

File tree

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
# This workflow will upload a Python Package to PyPI when a release is created
2+
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python#publishing-to-package-registries
3+
4+
# This workflow uses actions that are not certified by GitHub.
5+
# They are provided by a third-party and are governed by
6+
# separate terms of service, privacy policy, and support
7+
# documentation.
8+
9+
name: Upload Python Package
10+
11+
# on:
12+
# release:
13+
# types: [published]
14+
15+
on:
16+
workflow_dispatch:
17+
18+
permissions:
19+
contents: read
20+
21+
jobs:
22+
release-build:
23+
runs-on: ubuntu-latest
24+
25+
steps:
26+
- uses: actions/checkout@v4
27+
28+
- uses: actions/setup-python@v5
29+
with:
30+
python-version: "3.10"
31+
32+
- name: Build release distributions
33+
run: |
34+
# NOTE: put your own distribution build steps here.
35+
python -m pip install build
36+
python -m build
37+
38+
- name: Upload distributions
39+
uses: actions/upload-artifact@v4
40+
with:
41+
name: release-dists
42+
path: dist/
43+
44+
pypi-publish:
45+
runs-on: ubuntu-latest
46+
needs:
47+
- release-build
48+
permissions:
49+
# IMPORTANT: this permission is mandatory for trusted publishing
50+
id-token: write
51+
52+
# Dedicated environments with protections for publishing are strongly recommended.
53+
# For more information, see: https://docs.github.com/en/actions/deployment/targeting-different-environments/using-environments-for-deployment#deployment-protection-rules
54+
environment:
55+
name: pypi
56+
# OPTIONAL: uncomment and update to include your PyPI project URL in the deployment status:
57+
url: https://pypi.org/p/robotics_application_manager
58+
#
59+
# ALTERNATIVE: if your GitHub Release name is the PyPI project version string
60+
# ALTERNATIVE: exactly, uncomment the following line instead:
61+
# url: https://pypi.org/project/YOURPROJECT/${{ github.event.release.name }}
62+
63+
steps:
64+
- name: Retrieve release distributions
65+
uses: actions/download-artifact@v4
66+
with:
67+
name: release-dists
68+
path: dist/
69+
70+
- name: Publish release distributions to PyPI
71+
uses: pypa/gh-action-pypi-publish@release/v1
72+
with:
73+
packages-dir: dist/

robotics_application_manager/libs/process_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def is_xserver_running(display):
7575
return os.path.exists(x_socket_path)
7676

7777

78-
def wait_for_xserver(display, timeout=30):
78+
def wait_for_xserver(display, timeout=120):
7979
"""
8080
Wait for the X server to start within a specified timeout period.
8181

robotics_application_manager/manager/vnc/vnc_server.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,13 +115,13 @@ def start_vnc_gpu(self, display, internal_port, external_port, dri_path):
115115
self.wait_for_port("localhost", internal_port)
116116
self.wait_for_port("localhost", external_port)
117117

118-
def wait_for_port(self, host, port, timeout=20):
118+
def wait_for_port(self, host, port, timeout=120):
119119
"""Wait for a TCP port on a host to become available within a timeout period.
120120
121121
Args:
122122
host (str): Hostname or IP address to check.
123123
port (int): Port number to check.
124-
timeout (int, optional): Maximum time to wait in seconds. Defaults to 20.
124+
timeout (int, optional): Maximum time to wait in seconds. Defaults to 120.
125125
126126
Raises:
127127
TimeoutError: If the port does not become available within the timeout.

0 commit comments

Comments
 (0)