Skip to content

Conversation

@vandonr-amz
Copy link
Contributor

took the opportunity to fix tiny things in the system test,
and also migrate to the trigger to the method that logs the status while it waits

Comment on lines -44 to +45
max_attempts: int | None = None,
max_attempts: int = 480,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

passing None was not working before, so this is not a breaking change since it was already broken.

cp /root/.aws/credentials /tmp/credentials &&
# login to public ecr repo containing amazonlinux image
docker login --username {creds.username} --password {creds.password} public.ecr.aws
docker login --username {creds.username} --password {creds.password} public.ecr.aws &&
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the old version was working too, but at least this homogeneous with the other lines of the command

rm /tmp/credentials &&
# login again, this time to the private repo we created to hold that specific image
aws ecr get-login-password --region {ecr_region} |
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is probably from before, when we didn't pass credentials in the command line, but it's now useless.

"Failed to prepare docker image for the preprocessing job.\n"
f"The following error happened while executing the sequence of bash commands:\n{stderr}"
"The following error happened while executing the sequence of bash commands:\n"
f"{stderr.decode()}"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

stderr is a byte array. Without the decode(), the \n are not escaped for instance, and the whole output appears on one line, which is not the best

@vandonr-amz vandonr-amz changed the title deferrable mode for SageMakerTuningOperator deferrable mode for SageMakerTuningOperator and SageMakerEndpointOperator Jun 26, 2023
@vandonr-amz vandonr-amz changed the title deferrable mode for SageMakerTuningOperator and SageMakerEndpointOperator deferrable mode for SageMakerTuningOperator and SageMakerEndpointOperator Jun 26, 2023
@vandonr-amz vandonr-amz changed the title deferrable mode for SageMakerTuningOperator and SageMakerEndpointOperator deferrable mode for SageMakerTuningOperator and SageMakerEndpointOperator Jun 26, 2023
@vandonr-amz vandonr-amz changed the title deferrable mode for SageMakerTuningOperator and SageMakerEndpointOperator deferrable mode for SageMakerTuningOperator and SageMakerEndpointOperator Jun 26, 2023
@vandonr-amz
Copy link
Contributor Author

TIL: when updating a PR title with markdown, you need to refresh the page to see it formatted

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants