Skip to content
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

PW pool management script adjustments #159

Merged
merged 7 commits into from
Nov 20, 2023

Conversation

cevich
Copy link
Member

@cevich cevich commented Nov 15, 2023

No description provided.

Copy link

github-actions bot commented Nov 15, 2023

Successfully triggered github-actions/success task to indicate successful run of cirrus-ci_retrospective integration and unit testing from this PR's 7d312ab881a8d2ae17ebe69119c35137b46e0aff.

The file relates to dedicated hosts (DH), not persistent-workers (PW).

Also, don't exit non-zero if there is an error-status.  Rely on
consumers of state file to take appropriate action.

Signed-off-by: Chris Evich <[email protected]>
@cevich cevich force-pushed the mac_pw_pool_adjustments branch from 7d312ab to a4d857d Compare November 16, 2023 15:55
Copy link

github-actions bot commented Nov 16, 2023

Successfully triggered github-actions/success task to indicate successful run of cirrus-ci_retrospective integration and unit testing from this PR's a4d857dfe2497ba47a7706e8522ae13406a512a7.

Record the most recent status of all workers in a dedicated file.
Intended for use by humans or other automation.

Signed-off-by: Chris Evich <[email protected]>
Previously it was possible to fail to launch any instances do to bugs
and assumptions in the last-launch-time determination.  Fix this by
actually querying running instances, and searching for the most
recent launch time.  If there are no instances found, print a warning
operators may observe.  Also, fix missing `-t` option to several
readarray() calls.

Signed-off-by: Chris Evich <[email protected]>
For whatever reason, when a script that duplicates and redirects
stdout/stderr to a log-file calls one of the management scripts, the
log-file is truncated.  Updating output functions to append their output
seems to resolve this issue.

Signed-off-by: Chris Evich <[email protected]>
The term "BUSY" implies the dedicated host is doing something else.
This is not the case for staggering launches.  Use a more descriptive
status indicator for this.

Signed-off-by: Chris Evich <[email protected]>
@cevich cevich force-pushed the mac_pw_pool_adjustments branch from a4d857d to d1a3503 Compare November 17, 2023 19:52
Copy link

github-actions bot commented Nov 17, 2023

Successfully triggered github-actions/success task to indicate successful run of cirrus-ci_retrospective integration and unit testing from this PR's d1a3503a7fe1f50ebf3dc14217dee29d1d8367b9.

If for whatever reason there is a failure in the query or search
for last-launch times, `$latest_launched` could be set to the current
time.  This will ultimately result in no instances being launched.  Fix
this by improved detection of an empty/null launch time in
`${launchtimes[@]}`.

Signed-off-by: Chris Evich <[email protected]>
Copy link

github-actions bot commented Nov 20, 2023

Successfully triggered github-actions/success task to indicate successful run of cirrus-ci_retrospective integration and unit testing from this PR's 723fbf10390372c3d2c6d433b043c74ecf187216.

@cevich cevich marked this pull request as ready for review November 20, 2023 15:57
@cevich cevich merged commit 71622bf into containers:main Nov 20, 2023
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant