Skip to content

Commit

Permalink
Avoid creating unused ThreadPools, migrate from swagger-codegen to op…
Browse files Browse the repository at this point in the history
…enapi-generator.

 * related
      * kubernetes-client/gen#93
      * swagger-api/swagger-codegen#8061
      * OpenAPITools/openapi-generator#1387
 * Drop hack for empty reponses

 Bump versions:
  * sdks to 1.0.79
  * core to 1.0.74
  • Loading branch information
mmourafiq committed Apr 15, 2020
1 parent 3d7f3d9 commit 45f8849
Show file tree
Hide file tree
Showing 2,200 changed files with 152,053 additions and 137,635 deletions.
2 changes: 1 addition & 1 deletion core/polyaxon/pkg.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# limitations under the License.

NAME = "polyaxon"
VERSION = "1.0.72"
VERSION = "1.0.74"
SCHEMA_VERSION = 1.05
DESC = "Command Line Interface (CLI) for Polyaxon."
URL = "https://github.com/polyaxon/polyaxon"
Expand Down
2 changes: 1 addition & 1 deletion core/polyaxon/sidecar/outputs/summaries.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def sync_summaries(last_check: Optional[datetime], run_uuid: str, client: RunCli
if summaries:
client.log_artifact_lineage(summaries)
if last_values:
client.log_outputs(**last_values, async_req=False)
client.log_outputs(**last_values)


def sync_events_summaries(
Expand Down
3 changes: 2 additions & 1 deletion core/polyaxon/tracking/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@ def __init__(
self.set_run_event_logger()
if get_collect_resources():
self.set_run_resource_logger()
self._register_wait()

self._run = polyaxon_sdk.V1Run()
if settings.CLIENT_CONFIG.is_offline:
Expand All @@ -94,6 +93,8 @@ def __init__(
if settings.CLIENT_CONFIG.is_managed and self.track_env:
self.log_run_env()

self._register_wait()

@property
def artifacts_path(self):
return self._artifacts_path
Expand Down
2 changes: 1 addition & 1 deletion core/requirements/requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@ pandas==1.0.1

nvidia-ml-py3==7.352.0

-e git+https://github.com/polyaxon/polyaxon.git@master#egg=polyaxon-sdk==1.0.77&subdirectory=sdks/python/http_client/v1
-e git+https://github.com/polyaxon/polyaxon.git@master#egg=polyaxon-sdk==1.0.79&subdirectory=sdks/python/http_client/v1
2 changes: 1 addition & 1 deletion core/requirements/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
-r ../../requirements/base.txt

polyaxon-sdk==1.0.77
polyaxon-sdk==1.0.79
4 changes: 2 additions & 2 deletions core/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def run_tests(self):

setup(
name="polyaxon",
version="1.0.72",
version="1.0.74",
description="Command Line Interface (CLI) and client to interact with Polyaxon API.",
long_description=read_readme(),
long_description_content_type="text/markdown",
Expand Down Expand Up @@ -70,7 +70,7 @@ def run_tests(self):
"Jinja2>=2.10.3",
"kubernetes>=10.0.1",
"marshmallow==3.4.0",
"polyaxon-sdk==1.0.77",
"polyaxon-sdk==1.0.79",
"python-dateutil>=2.7.3",
"pytz>=2019.2",
"PyYAML>=5.1",
Expand Down
11 changes: 6 additions & 5 deletions sdks/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ PYTHON := $(DOCKER_RUN) python
GO := $(DOCKER_RUN) go
SWAGGER := $(DOCKER_RUN) swagger
DOCKER_PATH_AUTOGEN := /usr/local/bin/autogen/autogen
PATH_SWAGGER_CLI := ~/bin/swagger-codegen-cli-2.4.10.jar
PATH_SWAGGER_CLI := ~/bin/openapi-generator-cli-4.3.0.jar
LICENSE_OWNER := "Polyaxon, Inc."

# Client
Expand Down Expand Up @@ -99,19 +99,20 @@ generate-go-swagger:
$(DOCKER_RUN) find ./ -name "*.go" -exec $(DOCKER_PATH_AUTOGEN) -i --no-tlc --no-code -y 2018-2020 -c $(LICENSE_OWNER) -l apache {} \;

generate-js-swagger:
java -jar $(PATH_SWAGGER_CLI) generate -i swagger/$(VERSION)/polyaxon_sdk.swagger.json -l javascript -o js/$(HTTP_CLIENT)/$(VERSION) -c swagger/config/config-base.json
java -jar $(PATH_SWAGGER_CLI) generate -i swagger/$(VERSION)/polyaxon_sdk.swagger.json -g javascript -o js/$(HTTP_CLIENT)/$(VERSION) -c swagger/config/config-base.json
$(DOCKER_RUN) find ./ -name "*.js" -exec $(DOCKER_PATH_AUTOGEN) -i --no-tlc --no-code -y 2018-2020 -c $(LICENSE_OWNER) -l apache {} \;

generate-ts-swagger:
java -jar $(PATH_SWAGGER_CLI) generate -i swagger/$(VERSION)/polyaxon_sdk.swagger.json -l typescript-fetch -o ts/$(HTTP_CLIENT)/$(VERSION) -c swagger/config/config-base.json
java -jar $(PATH_SWAGGER_CLI) generate -i swagger/$(VERSION)/polyaxon_sdk.swagger.json -g typescript-fetch -o ts/$(HTTP_CLIENT)/$(VERSION) -c swagger/config/config-base.json
$(DOCKER_RUN) find ./ -name "*.ts" -exec $(DOCKER_PATH_AUTOGEN) -i --no-tlc --no-code -y 2018-2020 -c $(LICENSE_OWNER) -l apache {} \;

generate-java-swagger:
java -jar $(PATH_SWAGGER_CLI) generate -i swagger/$(VERSION)/polyaxon_sdk.swagger.json -l java -o java/$(HTTP_CLIENT)/$(VERSION) -c swagger/config/config-java.json -D hideGenerationTimestamp=true
java -jar $(PATH_SWAGGER_CLI) generate -i swagger/$(VERSION)/polyaxon_sdk.swagger.json -g java -o java/$(HTTP_CLIENT)/$(VERSION) -c swagger/config/config-java.json -D hideGenerationTimestamp=true
$(DOCKER_RUN) find ./ -name "*.java" -exec $(DOCKER_PATH_AUTOGEN) -i --no-tlc --no-code -y 2018-2020 -c $(LICENSE_OWNER) -l apache {} \;

generate-py-swagger:
java -jar $(PATH_SWAGGER_CLI) generate -i swagger/$(VERSION)/polyaxon_sdk.swagger.json -l python -o python/$(HTTP_CLIENT)/$(VERSION) -c swagger/config/config-py.json
java -jar $(PATH_SWAGGER_CLI) generate -i swagger/$(VERSION)/polyaxon_sdk.swagger.json -g python -o python/$(HTTP_CLIENT)/$(VERSION) -c swagger/config/config-py.json
$(DOCKER_RUN) rm -rf python/$(HTTP_CLIENT)/$(VERSION)/test
$(DOCKER_RUN) find ./ -name "*.py" -exec $(DOCKER_PATH_AUTOGEN) -i --no-tlc --no-code -y 2018-2020 -c $(LICENSE_OWNER) -l apache {} \;

generate-html-openapi:
Expand Down
2 changes: 1 addition & 1 deletion sdks/concat.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jq -s '
reduce .[] as $item ({}; . * $item) |
.info.title = "Polyaxon SDKs and REST API specification." |
.info.description = "Polyaxon SDKs and REST API specification." |
.info.version = "1.0.77" |
.info.version = "1.0.79" |
.info.contact = {"name": "Polyaxon sdk", "url": "https://github.com/polyaxon/polyaxon", "email": "contact@polyaxon.com"}
' swagger/v1/{polyaxon_sdk_apis,owner.artifact,project.artifact,run.artifact,conditions.default,connections.default,earlyStopping.default,matrix.default,parallel.default,reference.default,run.default,schedule.default}.swagger.json > "swagger/v1/polyaxon_sdk.swagger.json"

Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 45f8849

Please sign in to comment.