Skip to content

Commit 9b8af18

Browse files
MAJOR BUG FIX!
.gitignore was ignoring all of the nested data folders, which was only discovered now! This commit includes all of the nested data folders that should have been committed a long time ago. It fixes the issue with .gitignore. It also includes a new feature in ml_service frontend that allows us to view any file in the repository through the web interface.
1 parent bac3fe3 commit 9b8af18

29 files changed

Lines changed: 3265 additions & 27 deletions

File tree

.github/workflows/tests.yml

Lines changed: 20 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -7,25 +7,20 @@ on:
77

88
jobs:
99
tests:
10+
if: "!contains(github.event.head_commit.message, '[skip ci]')"
1011
runs-on: ubuntu-latest
1112

1213
steps:
1314
- uses: actions/checkout@v4
1415

15-
# Nuke everything: remove cached Conda environment and Conda package cache
16-
- name: Remove existing Conda environment
17-
run: conda env remove -n hotel_management || true
18-
19-
- name: Remove Conda package cache
20-
run: rm -rf ~/conda_pkgs_dir || true
21-
22-
# Remove any old Python bytecode
23-
- name: Remove Python caches
24-
run: |
25-
find . -type d -name "__pycache__" -exec rm -rf {} +
26-
find . -name "*.pyc" -delete
16+
- name: Cache Conda packages
17+
uses: actions/cache@v4
18+
with:
19+
path: ~/conda_pkgs_dir
20+
key: ${{ runner.os }}-conda-pkgs-
21+
restore-keys: |
22+
${{ runner.os }}-conda-pkgs-
2723
28-
# Recreate environment completely
2924
- name: Set up conda
3025
uses: conda-incubator/setup-miniconda@v2
3126
with:
@@ -35,10 +30,17 @@ jobs:
3530
use-mamba: true
3631
auto-activate-base: false
3732

38-
# Install the package in editable mode
39-
- name: Install package in editable mode
40-
run: conda run -n hotel_management pip install -e .
33+
- name: Install additional pip dependencies (CPU-safe version of torch)
34+
run: |
35+
conda run -n hotel_management pip install torch==2.10.0
36+
conda run -n hotel_management pip install -r requirements.txt
37+
conda run -n hotel_management pip install coverage
38+
39+
- name: Show environment
40+
run: conda run -n hotel_management conda list
4141

42-
# Run tests with coverage
4342
- name: Run tests with coverage
44-
run: conda run -n hotel_management coverage run -m pytest -v --maxfail=1 --disable-warnings
43+
run: conda run -n hotel_management coverage run -m pytest -v --maxfail=1 --disable-warnings
44+
45+
- name: Show coverage summary and enforce minimum
46+
run: conda run -n hotel_management coverage report -m -i --fail-under=90

.gitignore

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -218,10 +218,10 @@ catboost_info/
218218
.vscodecounter/
219219

220220
# Failure management folder that helps deal with failed search and train runs by storing relevant information at runtime (best params from each search, training model snapshots) and deleting if the run is successful. Irrelevant for version control.
221-
failure_management
221+
/failure_management/
222222

223223
# Temporarily ignore all experiments, data, feature sets, and model registry files. These are all relevant for version control, but we want to temporarily ignore them while we work on the registry and experiment tracking features.
224-
experiments/
225-
data/
226-
feature_store/
227-
model_registry/
224+
/experiments/
225+
/data/
226+
/feature_store/
227+
/model_registry/

docs/api/ml/ml/data/validation/validate_entity_key.html

Lines changed: 340 additions & 0 deletions
Large diffs are not rendered by default.

docs/api/ml/ml/search/utils/failure_management/delete_failure_management_folder.html

Lines changed: 485 additions & 0 deletions
Large diffs are not rendered by default.

docs/api/ml/ml/search/utils/failure_management/save_broad.html

Lines changed: 377 additions & 0 deletions
Large diffs are not rendered by default.

docs/api/ml/ml/search/utils/failure_management/save_narrow.html

Lines changed: 377 additions & 0 deletions
Large diffs are not rendered by default.

docs/api/ml_service/ml_service/backend/configs/data/utils.html

Lines changed: 244 additions & 0 deletions
Large diffs are not rendered by default.

docs/api/ml_service/ml_service/backend/configs/data/utils/get_config_path.html

Lines changed: 316 additions & 0 deletions
Large diffs are not rendered by default.

docs/api/ml_service/ml_service/backend/configs/data/validation.html

Lines changed: 244 additions & 0 deletions
Large diffs are not rendered by default.

docs/api/ml_service/ml_service/backend/configs/data/validation/validate_config_payload.html

Lines changed: 309 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)