Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integration tests troubled pipelines retrieval #1304

Closed
wants to merge 5 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions .github/workflows/integration_retrieval.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Retrieval Integration

on:
issue_comment:
types: [created]

jobs:
scheduled:
runs-on: ubuntu-latest
if: github.event.issue.pull_request && contains(github.event.comment.body, '/retrieve_troubled_pipelines')
timeout-minutes: 95
strategy:
matrix:
python-version: [ 3.8, 3.9, '3.10' ]

steps:
- name: Checkout branch
uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pytest
pip install .[extra]
pip install .[examples]
pip install .[profilers]
pip install pytest-cov
- name: Test with pytest
run: |
pytest --cov=fedot -s test/integration
- name: Save pipelines
uses: actions/upload-artifact@v3
with:
name: pipelines
path: .invalid_fitness_after_evaluation/
3 changes: 3 additions & 0 deletions fedot/core/optimisers/objective/data_objective_eval.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
from fedot.core.data.data import InputData
from fedot.core.operations.model import Model
from fedot.core.pipelines.pipeline import Pipeline
from fedot.core.utils import fedot_project_root
from fedot.utilities.debug import is_recording_mode, save_debug_info_for_pipeline

DataSource = Callable[[], Iterable[Tuple[InputData, InputData]]]
Expand Down Expand Up @@ -80,6 +81,8 @@ def evaluate(self, graph: Pipeline) -> Fitness:
if evaluated_fitness.valid:
folds_metrics.append(evaluated_fitness.values)
else:
prepared_pipeline.save(path=str(fedot_project_root().joinpath('invalid_fitness_after_evaluation')),
is_datetime_in_path=True)
self._log.warning(f'Invalid fitness after objective evaluation. '
f'Skipping the graph: {graph_id}', raise_if_test=True)
if self._do_unfit:
Expand Down
Loading