Skip to content

fix: use format strings intead of os.path.join for Processing paths intended for Unix #1435

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

Merged
merged 2 commits into from
Apr 23, 2020

Conversation

laurenyu
Copy link
Contributor

Issue #, if available:

Description of changes:
When using the Python SDK to construct paths for Docker containers, no matter what the user's platform is, we still expect the Docker container to use Ubuntu (since that's what all the prebuilt SageMaker images use).

This PR is similar to #1391

Testing done:
unit tests - I did some digging to see if I could write a unit test for the Windows case, but it seems like the os.path.join implementation for Unix systems hardcodes "/" (at least in Python 2.7): https://hg.python.org/cpython/file/v2.7.3/Lib/posixpath.py

Merge Checklist

Put an x in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your pull request.

General

  • I have read the CONTRIBUTING doc
  • I used the commit message format described in CONTRIBUTING
  • I have passed the region in to any/all clients that I've initialized as part of this change.
  • I have updated any necessary documentation, including READMEs and API docs (if appropriate)

Tests

  • I have added tests that prove my fix is effective or that my feature works (if appropriate)
  • I have checked that my tests are not configured for a specific region or account (if appropriate)
  • I have used unique_name_from_base to create resource names in integ tests (if appropriate)

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@sagemaker-bot
Copy link
Collaborator

AWS CodeBuild CI Report

  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@sagemaker-bot
Copy link
Collaborator

AWS CodeBuild CI Report

  • Result: FAILED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@sagemaker-bot
Copy link
Collaborator

AWS CodeBuild CI Report

  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@sagemaker-bot
Copy link
Collaborator

AWS CodeBuild CI Report

  • Result: FAILED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@sagemaker-bot
Copy link
Collaborator

AWS CodeBuild CI Report

  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@sagemaker-bot
Copy link
Collaborator

AWS CodeBuild CI Report

  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@sagemaker-bot
Copy link
Collaborator

AWS CodeBuild CI Report

  • Result: FAILED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@sagemaker-bot
Copy link
Collaborator

AWS CodeBuild CI Report

  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@sagemaker-bot
Copy link
Collaborator

AWS CodeBuild CI Report

  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@sagemaker-bot
Copy link
Collaborator

AWS CodeBuild CI Report

  • Result: FAILED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@laurenyu laurenyu changed the title fix: use format strings intead of os.path.join for paths intended for Unix fix: use format strings intead of os.path.join for Processing paths intended for Unix Apr 23, 2020
@sagemaker-bot
Copy link
Collaborator

AWS CodeBuild CI Report

  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@laurenyu laurenyu merged commit 06a00d4 into aws:master Apr 23, 2020
@laurenyu laurenyu deleted the processing-input-path branch April 23, 2020 23:23
benieric pushed a commit to benieric/sagemaker-python-sdk that referenced this pull request Jun 4, 2024
)

* Add inference benchmarking classes, types, and some function definitions.

* Presets and tests, class definitions.

* Add Benchmarker tests and fix formatting.

* Update classes and presets, add sample payload uploader.

* Change BenchmarkJob class to use @DataClass

* Fix ValueError message.

* Use more list comprehension and pythonic practices.

* Add list to BenchmarkJob. Minor fixes to validations.

* Update preset values/names, docstrings, use Model.create().

* Format and remove local testing change

* Fix outdated IR functions in Session. Implement more class functions and fix bugs caught during e2e testing using XGB model.

* Remove test notebook.

* Format dataframes, make list functions return df, iron out bugs in sample payload uploader.

* Add docstrings.

* Set default instance count for Benchmark.deploy() to 1.

* Revert traffic pattern durations to 120s (current min supported by IR).

* Wire new LLM benchmarking project fields to create_benchmark_job flow. Replace prints with logging.

* Fixes for bugs caught during e2e testing. Add processing for detailed metrics DF and fix to_model() bugs.

* Change list_benchmark_jobs() to return a list.

* Add metric data CSV processing into dict. Minor style/bugfixes.

* Implement compare_benchmarks(). Improve dataframe formatting and docstrings.

* Fix formatting.

---------

Co-authored-by: Joseph Zhang <[email protected]>
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.

3 participants