Skip to content

Integration test fixes for CI pipeline #1259

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

Merged
merged 10 commits into from
Jun 7, 2023

Conversation

gavin-aguiar
Copy link
Contributor

@gavin-aguiar gavin-aguiar commented Jun 7, 2023

Description:
CI pipelines were failing with module not found error for test/utils.
Pytest installed in the agent could not find tests/utils module since its not a part of the azure-functions-worker.
When you run pytest directly, the command is executed as a script and assumes that pytest is installed and available in the system's PATH. Using python -m pytest invokes the pytest module as a package through the Python interpreter. This way all the modules within the root folder are added to sys.modules.

Fixes #1230


PR information

  • The title of the PR is clear and informative.
  • There are a small number of commits, each of which has an informative message. This means that previously merged commits do not appear in the history of the PR. For information on cleaning up the commits in your pull request, see this page.
  • If applicable, the PR references the bug/issue that it fixes in the description.
  • New Unit tests were added for the changes made and CI is passing.

Quality of Code and Contribution Guidelines

@codecov
Copy link

codecov bot commented Jun 7, 2023

Codecov Report

Merging #1259 (0e9ce79) into dev (78274ef) will decrease coverage by 53.26%.
The diff coverage is n/a.

❗ Current head 0e9ce79 differs from pull request most recent head 58da026. Consider uploading reports for the commit 58da026 to get more accurate results

@@             Coverage Diff             @@
##              dev    #1259       +/-   ##
===========================================
- Coverage   85.24%   31.98%   -53.26%     
===========================================
  Files          34       34               
  Lines        1904     1904               
  Branches      366      366               
===========================================
- Hits         1623      609     -1014     
- Misses        219     1294     +1075     
+ Partials       62        1       -61     
Flag Coverage Δ
unittests 31.98% <ø> (-53.21%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

see 24 files with indirect coverage changes

@gavin-aguiar gavin-aguiar merged commit 442c8f0 into dev Jun 7, 2023
@gavin-aguiar gavin-aguiar deleted the gaaguiar/integration_test_fixes branch June 7, 2023 21:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Investigate Python language worker integration tests failures in Functions v4 for 5/1/23
2 participants