-
Notifications
You must be signed in to change notification settings - Fork 51
feat(deployment): add sequencer readiness check stage to system test workflow #6641
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
base: main
Are you sure you want to change the base?
Conversation
faa9de2
to
6755a59
Compare
6755a59
to
6dc5a42
Compare
6683d74
to
5ec500c
Compare
5bd0442
to
85b2699
Compare
e72c8d6
to
b97bdd9
Compare
c251335
to
701000e
Compare
fb8573a
to
e113bb8
Compare
701000e
to
55ef9f1
Compare
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.
Reviewable status: 0 of 2 files reviewed, 1 unresolved discussion
scripts/system_tests/readiness_check.py
line 43 at r2 (raw file):
def wait_for_services_ready(deployment_config_path: str, namespace: str): config.load_kube_config() # Or load_incluster_config() if inside a pod
?
Code quote:
# Or load_incluster_config() if inside a pod
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.
Reviewable status: 0 of 2 files reviewed, 2 unresolved discussions (waiting on @nadin-Starkware)
scripts/system_tests/readiness_check.py
line 56 at r2 (raw file):
controller = service["controller"] service_name_lower = service_name.lower() controller_lower = controller.lower()
This chunk is repeated, maybe create a fn?
Code quote:
service_name = service["name"]
controller = service["controller"]
service_name_lower = service_name.lower()
controller_lower = controller.lower()
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.
Reviewable status: 0 of 2 files reviewed, 3 unresolved discussions (waiting on @nadin-Starkware)
scripts/system_tests/readiness_check.py
line 72 at r2 (raw file):
else: print(f"❌ Unknown controller: {controller}. Skipping...") continue
Is this not a reason to fail the test?
Code quote:
print(f"❌ Unknown controller: {controller}. Skipping...")
continue
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.
Reviewable status: 0 of 2 files reviewed, 4 unresolved discussions (waiting on @nadin-Starkware)
scripts/system_tests/readiness_check.py
line 78 at r2 (raw file):
continue else: raise
What does this do?
Code quote:
except ApiException as e:
if e.status == 404:
print(f"❌ {controller} {resource_name} not found. Skipping...")
continue
else:
raise
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.
Reviewable status: 0 of 2 files reviewed, 5 unresolved discussions (waiting on @nadin-Starkware)
scripts/system_tests/readiness_check.py
line 104 at r2 (raw file):
).status ready = status.ready_replicas or 0 desired = status.replicas or 0
Please use "else if", and fail on the 3rd default branch
Code quote:
else: # deployment
status = apps_v1.read_namespaced_deployment_status(
resource_name, namespace
).status
ready = status.ready_replicas or 0
desired = status.replicas or 0
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.
Reviewable status: 0 of 2 files reviewed, 6 unresolved discussions (waiting on @nadin-Starkware)
scripts/system_tests/readiness_check.py
line 131 at r2 (raw file):
"--namespace", help="Kubernetes namespace", )
Mark as required
Code quote:
parser.add_argument(
"--namespace",
help="Kubernetes namespace",
)
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.
Reviewable status: 0 of 2 files reviewed, 7 unresolved discussions (waiting on @nadin-Starkware)
scripts/system_tests/readiness_check.py
line 116 at r2 (raw file):
else: print( f"⚠️ Timeout waiting for {controller} {resource_name} to become ready."
This is an error, right?
Code quote:
⚠️
e113bb8
to
cd1f7ae
Compare
55ef9f1
to
6399f64
Compare
cd1f7ae
to
7c7f006
Compare
ae841e3
to
f8a2b9f
Compare
53a42cb
to
e20b74b
Compare
f8a2b9f
to
3a68e16
Compare
e20b74b
to
f365ce3
Compare
711b52f
to
f89200a
Compare
aa5feaf
to
1632d57
Compare
04e7fc7
to
8d3ec34
Compare
1632d57
to
d089e8e
Compare
8d3ec34
to
d81b38e
Compare
19acdf0
to
787c114
Compare
d81b38e
to
57d2097
Compare
787c114
to
0a37708
Compare
57d2097
to
daefad8
Compare
0a37708
to
8a409b7
Compare
8a409b7
to
c465b39
Compare
daefad8
to
569333f
Compare
No description provided.