Skip to content

Commit 56c06df

Browse files
authored
Merge branch 'main' into ODSC-54785/fix-modelversionset
2 parents 84cbaa6 + e5eceef commit 56c06df

File tree

103 files changed

+8663
-903
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

103 files changed

+8663
-903
lines changed

.github/workflows/run-operators-unit-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
strategy:
3232
fail-fast: false
3333
matrix:
34-
python-version: ["3.8", "3.10.8"]
34+
python-version: ["3.8"]
3535

3636
steps:
3737
- uses: actions/checkout@v4

.github/workflows/run-unittests-default_setup.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ on:
44
workflow_dispatch:
55
pull_request:
66
branches: [ "main" ]
7+
paths:
8+
- "ads/**"
9+
- "!ads/opctl/operator/**"
10+
- "!ads/feature_store/**"
11+
- "pyproject.toml"
12+
713

814
# Cancel in progress workflows on pull_requests.
915
# https://docs.github.com/en/actions/using-jobs/using-concurrency#example-using-a-fallback-value

.github/workflows/run-unittests-py38-cov-report.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ on:
44
workflow_dispatch:
55
pull_request:
66
branches: [ "main" ]
7+
paths:
8+
- "ads/**"
9+
- "!ads/opctl/operator/**"
10+
- "!ads/feature_store/**"
11+
- "pyproject.toml"
712

813
# Cancel in progress workflows on pull_requests.
914
# https://docs.github.com/en/actions/using-jobs/using-concurrency#example-using-a-fallback-value

.github/workflows/run-unittests-py39-py310.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@ name: "[Py3.9][Py3.10] - tests/unitary/**"
33
on:
44
workflow_dispatch:
55
pull_request:
6+
branches: [ "main" ]
7+
paths:
8+
- "ads/**"
9+
- "!ads/opctl/operator/**"
10+
- "!ads/feature_store/**"
11+
- "pyproject.toml"
612

713
# Cancel in progress workflows on pull_requests.
814
# https://docs.github.com/en/actions/using-jobs/using-concurrency#example-using-a-fallback-value

CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* @darenr @mayoor @mrDzurb @VipulMascarenhas @qiuosier

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,4 +181,4 @@ Consult the security guide [SECURITY.md](https://github.com/oracle/accelerated-d
181181

182182
## License
183183

184-
Copyright (c) 2020, 2022 Oracle and/or its affiliates. Licensed under the [Universal Permissive License v1.0](https://oss.oracle.com/licenses/upl/)
184+
Copyright (c) 2020, 2024 Oracle and/or its affiliates. Licensed under the [Universal Permissive License v1.0](https://oss.oracle.com/licenses/upl/)

THIRD_PARTY_LICENSES.txt

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,12 @@ asteval
1818
* Source code: https://github.com/newville/asteval
1919
* Project home: https://github.com/newville/asteval
2020

21+
autots
22+
* Copyright (c) 2024 Colin Catlin
23+
* License: MIT License
24+
* Source code: https://github.com/winedarksea/AutoTS
25+
* Project home: https://winedarksea.github.io/AutoTS/build/html/index.html
26+
2127
bokeh
2228
* Copyright Copyright (c) 2012 - 2021, Anaconda, Inc., and Bokeh Contributors
2329
* License: BSD 3-Clause "New" or "Revised" License
@@ -169,6 +175,12 @@ nbformat
169175
* Source code: https://github.com/jupyter/nbconvert
170176
* Project home: https://jupyter.org/
171177

178+
neuralprophet
179+
* Copyright (c) 2020 Oskar Triebe
180+
* License: MIT License
181+
* Source Code: https://github.com/ourownstory/neural_prophet
182+
* Project Home: https://neuralprophet.com
183+
172184
numpy
173185
* Copyright (c) 2005-2021, NumPy Developers.
174186
* License: BSD 3-Clause "New" or "Revised" License
@@ -247,6 +259,18 @@ plotly
247259
* Source code: https://github.com/plotly/plotly.py
248260
* Project home: https://plotly.com/
249261

262+
pmdarima
263+
* Copyright (c) 2017 Taylor G Smith
264+
* License: MIT License
265+
* Source code: https://github.com/alkaline-ml/pmdarima
266+
* Project home: https://alkaline-ml.com/pmdarima/
267+
268+
prophet
269+
* Copyright (c) Facebook, Inc. and its affiliates.
270+
* License: MIT License
271+
* Source code: https://github.com/facebook/prophet
272+
* Project home: https://facebook.github.io/prophet/
273+
250274
protobuf
251275
* Copyright 2008 Google Inc. All rights reserved.
252276
* License: Google Protobuf License
@@ -289,6 +313,12 @@ PyYAML
289313
* Source code: https://github.com/yaml/pyyaml/
290314
* Project home: https://pyyaml.org/
291315

316+
report-creator
317+
* Copyright 2024 Daren Race
318+
* License: MIT License
319+
* Source code: https://github.com/darenr/report_creator
320+
* Project home: https://darenr.github.io/report_creator/
321+
292322
requests
293323
* Copyright 2023 Kenneth Reitz
294324
* License: Apache-2.0 license

ads/aqua/__init__.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,23 @@
66

77
import logging
88
import sys
9+
import os
10+
from ads.aqua.utils import fetch_service_compartment
11+
from ads.config import OCI_RESOURCE_PRINCIPAL_VERSION
12+
from ads import set_auth
913

1014
logger = logging.getLogger(__name__)
1115
handler = logging.StreamHandler(sys.stdout)
1216
logger.setLevel(logging.INFO)
17+
18+
if OCI_RESOURCE_PRINCIPAL_VERSION:
19+
set_auth("resource_principal")
20+
21+
ODSC_MODEL_COMPARTMENT_OCID = os.environ.get("ODSC_MODEL_COMPARTMENT_OCID")
22+
if not ODSC_MODEL_COMPARTMENT_OCID:
23+
try:
24+
ODSC_MODEL_COMPARTMENT_OCID = fetch_service_compartment()
25+
except Exception as e:
26+
logger.error(
27+
f"ODSC_MODEL_COMPARTMENT_OCID environment variable is not set for Aqua, due to {e}."
28+
)

ads/aqua/evaluation.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1392,11 +1392,6 @@ def load_evaluation_config(self, eval_id):
13921392
"memory_in_gbs": 128,
13931393
"block_storage_size": 200,
13941394
},
1395-
"VM.Standard.A1.Flex": {
1396-
"ocpu": 8,
1397-
"memory_in_gbs": 128,
1398-
"block_storage_size": 200,
1399-
},
14001395
},
14011396
"default": {
14021397
"ocpu": 8,

ads/aqua/extension/common_handler.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
from importlib import metadata
88

99
from ads.aqua.extension.base_handler import AquaAPIhandler
10+
from ads.aqua import ODSC_MODEL_COMPARTMENT_OCID
11+
from ads.aqua.exception import AquaResourceAccessError
1012

1113

1214
class ADSVersionHandler(AquaAPIhandler):
@@ -16,6 +18,19 @@ def get(self):
1618
self.finish({"data": metadata.version("oracle_ads")})
1719

1820

21+
class CompatibilityCheckHandler(AquaAPIhandler):
22+
"""The handler to check if the extension is compatible."""
23+
24+
def get(self):
25+
if ODSC_MODEL_COMPARTMENT_OCID:
26+
return self.finish(dict(status="ok"))
27+
else:
28+
raise AquaResourceAccessError(
29+
f"The AI Quick actions extension is not compatible in the given region."
30+
)
31+
32+
1933
__handlers__ = [
2034
("ads_version", ADSVersionHandler),
35+
("hello", CompatibilityCheckHandler),
2136
]

0 commit comments

Comments
 (0)