Skip to content

Commit

Permalink
Fixed precommit lint check and directory bug in tune e2e tests
Browse files Browse the repository at this point in the history
Signed-off-by: Prakhar Singhal <[email protected]>
  • Loading branch information
prakhar479 committed Sep 2, 2024
1 parent 2222b99 commit 3f4ea55
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ FROM python:3.8-slim

WORKDIR /app

COPY dummy-collector.py .
COPY test/e2e/v1beta1/scripts/gh-actions/dummy-collector.py .

RUN pip install kubernetes

CMD ["python", "dummy-collector.py"]
CMD ["python", "dummy-collector.py"]
Empty file modified test/e2e/v1beta1/scripts/gh-actions/build-load.sh
100755 → 100644
Empty file.
3 changes: 1 addition & 2 deletions test/e2e/v1beta1/scripts/gh-actions/dummy-collector.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
import logging
import time

from kubernetes import client
from kubernetes import config
from kubernetes import client, config

# The default logging config.
logging.basicConfig(level=logging.INFO)
Expand Down
3 changes: 1 addition & 2 deletions test/e2e/v1beta1/scripts/gh-actions/run-e2e-tune-api.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def objective(parameters):
resources_per_trial={"cpu": "2"},
metrics_collector_config={
"kind": "Custom",
"customCollector": metric_collector,
"custom_collector": metric_collector,
},
)
experiment = katib_client.wait_for_experiment_condition(
Expand Down Expand Up @@ -118,7 +118,6 @@ def objective(parameters):
logging.debug(katib_client.get_experiment(exp_name, exp_namespace))
logging.debug(katib_client.get_suggestion(exp_name, exp_namespace))


if __name__ == "__main__":
parser = argparse.ArgumentParser()
parser.add_argument(
Expand Down

0 comments on commit 3f4ea55

Please sign in to comment.