-
Notifications
You must be signed in to change notification settings - Fork 364
Closed
Labels
kind:CIImpacts continuous integration (build, test, etc.)Impacts continuous integration (build, test, etc.)kind:bugSomething isn't workingSomething isn't workingpriority:high
Description
Describe the issue
The lint-server github action https://github.com/elyra-ai/elyra/blob/main/.github/workflows/build.yml#L46-L52 does not terminate as expected if flake8 raises an error, as seen here and all subsequent CI runs.
Note that flake8 returns a non-zero status code, yet the next commands (echo + black) in the Makefile are executed:

Since the last command (python -m black ...) returns a zero return code, the action's outcome is interpreted as success.
make lint-server behaves as expected in a local build environment:
$ make lint-server
python3 -m flake8 elyra .github
elyra/tests/pipeline/test_handlers.py:33:1: I100 Import statements are in the wrong order. 'from elyra.pipeline.processor import PipelineProcessorManager' should be before 'from elyra.tests.util.handlers_utils import expected_http_error'
elyra/tests/pipeline/test_handlers.py:33:1: I202 Additional newline in a group of imports. 'from elyra.pipeline.processor import PipelineProcessorManager' is identified as Application and 'from elyra.tests.util.handlers_utils import expected_http_error' is identified as Application.
elyra/tests/pipeline/test_handlers.py:36:1: I100 Import statements are in the wrong order. 'from elyra.pipeline.parser import PipelineParser' should be before 'from elyra.pipeline.validation import ValidationResponse'
make: *** [lint-server] Error 1
Metadata
Metadata
Assignees
Labels
kind:CIImpacts continuous integration (build, test, etc.)Impacts continuous integration (build, test, etc.)kind:bugSomething isn't workingSomething isn't workingpriority:high