Compare commits
2 Commits
automation
...
9fbe05a6a5
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9fbe05a6a5 | ||
|
|
9b4d04cf34 |
@@ -61,8 +61,9 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
python3 tools/refresh_sku_catalog.py --discover -v 2>&1 \
|
python3 tools/refresh_sku_catalog.py --discover -v 2>&1 \
|
||||||
| tee /tmp/discover.log
|
| tee /tmp/discover.log
|
||||||
NEW_COUNT=$(grep -oE '^[0-9]+ SKUs present in API' /tmp/discover.log \
|
NEW_COUNT=$(sed -n 's/^DISCOVER_MISSING_COUNT=\([0-9]\+\)$/\1/p' \
|
||||||
| head -1 | awk '{print $1}' || echo "0")
|
/tmp/discover.log | tail -1)
|
||||||
|
echo "Parsed new_count='${NEW_COUNT}'"
|
||||||
echo "new_count=${NEW_COUNT:-0}" >> $GITHUB_OUTPUT
|
echo "new_count=${NEW_COUNT:-0}" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Upload logs as artifact
|
- name: Upload logs as artifact
|
||||||
@@ -83,7 +84,7 @@ jobs:
|
|||||||
GITEA_REPO: ${{ github.repository }}
|
GITEA_REPO: ${{ github.repository }}
|
||||||
run: |
|
run: |
|
||||||
DATE=$(date -u +%Y-%m-%d)
|
DATE=$(date -u +%Y-%m-%d)
|
||||||
BRANCH="automation/sku-refresh-${DATE}"
|
BRANCH="automation/sku-refresh-${DATE}-run${{ github.run_number }}"
|
||||||
|
|
||||||
git config user.name "sku-refresh-bot"
|
git config user.name "sku-refresh-bot"
|
||||||
git config user.email "sku-refresh@automation.local"
|
git config user.email "sku-refresh@automation.local"
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
last_verified: '2026-04-24'
|
last_verified: '2026-03-27'
|
||||||
source: Oracle OCI Price List + internal BOM reference v1.73
|
source: Oracle OCI Price List + internal BOM reference v1.73
|
||||||
description: 'OCI SKU catalog for BOM generation. ~160 SKUs across 14+ categories. Prices are approximate and for estimation
|
description: 'OCI SKU catalog for BOM generation. ~160 SKUs across 14+ categories. Prices are approximate and for estimation
|
||||||
only. Always verify against https://www.oracle.com/cloud/pricing/
|
only. Always verify against https://www.oracle.com/cloud/pricing/
|
||||||
@@ -563,7 +563,7 @@ categories:
|
|||||||
- sku: B95714
|
- sku: B95714
|
||||||
product: Oracle Autonomous AI Transaction Processing - Dedicated - ECPU
|
product: Oracle Autonomous AI Transaction Processing - Dedicated - ECPU
|
||||||
metric: ECPU Per Hour
|
metric: ECPU Per Hour
|
||||||
list_price_usd: 0.0807
|
list_price_usd: 0.336
|
||||||
default_hours_units: 730
|
default_hours_units: 730
|
||||||
billing_type: hourly
|
billing_type: hourly
|
||||||
- sku: B95715
|
- sku: B95715
|
||||||
@@ -1301,6 +1301,12 @@ categories:
|
|||||||
list_price_usd: 0.015
|
list_price_usd: 0.015
|
||||||
default_hours_units: 730
|
default_hours_units: 730
|
||||||
billing_type: hourly
|
billing_type: hourly
|
||||||
|
# OCI Data Science and Data Flow do not have dedicated SKUs in the Oracle
|
||||||
|
# public pricing API — they are billed via the underlying Compute + Block/Object
|
||||||
|
# Storage consumed by notebook sessions, model-deployment endpoints, and Spark
|
||||||
|
# runs. The entries below are placeholder estimates (VM.Standard3.Flex OCPU rate)
|
||||||
|
# so BOMs can include them as line items; always confirm against the customer's
|
||||||
|
# actual shape + usage before quoting.
|
||||||
- sku: EST-DS-NOTEBOOK
|
- sku: EST-DS-NOTEBOOK
|
||||||
product: '[ESTIMATE] OCI Data Science - Notebook Session (billed via underlying VM.Standard compute OCPU)'
|
product: '[ESTIMATE] OCI Data Science - Notebook Session (billed via underlying VM.Standard compute OCPU)'
|
||||||
metric: OCPU Per Hour
|
metric: OCPU Per Hour
|
||||||
|
|||||||
@@ -385,6 +385,8 @@ def discover_catalog(verbose=False):
|
|||||||
|
|
||||||
missing = discover_missing_skus(api_map, sku_map, verbose=verbose)
|
missing = discover_missing_skus(api_map, sku_map, verbose=verbose)
|
||||||
print_missing_skus(missing, limit=None if verbose else 40)
|
print_missing_skus(missing, limit=None if verbose else 40)
|
||||||
|
# Machine-readable summary for CI/automation — always last line on stdout.
|
||||||
|
print("\nDISCOVER_MISSING_COUNT={}".format(len(missing)))
|
||||||
return 0
|
return 0
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user