Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@ktdreyer
Copy link
Contributor

Prior to this change, ./cloud-instance.sh ec2 launch would fail to print information about the host it was launching.

Bash with set -e will bail out on (( $i++ )) when $i is zero. Start i on 1 to avoid this. This also clarifies that this is the "first" logical time the script has polled describe-instances before sleeping.

Issue resolved by this Pull Request:
Resolves #3185

Prior to this change, "./cloud-instance.sh ec2 launch" would fail to
print information about the host it was launching.

Bash with set -e will bail out on (( $i++ )) when $i is zero. Start i on
1 to avoid this. This also clarifies that this is the "first" logical
time the script has polled describe-instances before sleeping.

Signed-off-by: Ken Dreyer <[email protected]>
@mergify mergify bot added the one-approval PR has one approval from a maintainer label Feb 25, 2025
@mergify mergify bot merged commit 99c2f06 into instructlab:main Feb 25, 2025
7 checks passed
@mergify mergify bot removed the one-approval PR has one approval from a maintainer label Feb 25, 2025
mergify bot added a commit that referenced this pull request Feb 26, 2025
The files in [`scripts/infra`](https://github.com/instructlab/instructlab/tree/main/scripts/infra) are relevant to CI/CD. Make PRs easier to discover for people who work on CI/CD.

With this change, my recent PR #3186 would get the [CI/CD label](https://github.com/instructlab/instructlab/pulls?q=is%3Aopen+is%3Apr+label%3ACI%2FCD).


Approved-by: booxter

Approved-by: courtneypacheco
@ktdreyer ktdreyer deleted the cloud-setup-loop branch February 27, 2025 21:54
@ktdreyer
Copy link
Contributor Author

@mergify backport release-v0.24

@mergify
Copy link
Contributor

mergify bot commented Feb 27, 2025

backport release-v0.24

✅ Backports have been created

Details

mergify bot added a commit that referenced this pull request Feb 27, 2025
Prior to this change, `./cloud-instance.sh ec2 launch` would fail to print information about the host it was launching.

Bash with `set -e` will bail out on `(( $i++ ))` when `$i` is zero. Start `i` on `1` to avoid this. This also clarifies that this is the "first" logical time the script has polled `describe-instances` before sleeping.

**Issue resolved by this Pull Request:**
Resolves #3185 <hr>This is an automatic backport of pull request #3186 done by [Mergify](https://mergify.com).


Approved-by: booxter

Approved-by: danmcp
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.

cloud-instance.sh ec2 launch exits before displaying information about running instance

3 participants