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

fix 6068:Make the test class dependencies fulfill all the tests. #6089

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

clebergnu
Copy link
Contributor

Signed-off-by: wangpeng [email protected]

@clebergnu clebergnu added the bug label Jan 13, 2025
@clebergnu clebergnu added this to the 109 - Codename TBD milestone Jan 13, 2025
@clebergnu clebergnu self-assigned this Jan 13, 2025
Copy link

codecov bot commented Jan 13, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Please upload report for BASE (master@e7496db). Learn more about missing BASE report.
Report is 7 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff            @@
##             master    #6089   +/-   ##
=========================================
  Coverage          ?   68.78%           
=========================================
  Files             ?      203           
  Lines             ?    21970           
  Branches          ?        0           
=========================================
  Hits              ?    15112           
  Misses            ?     6858           
  Partials          ?        0           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

The 'type' field is removed from the dependencies_dict (using
pop('type')), which causes the 'type' field to no longer exist in the
dictionary during subsequent operations.

The test updates are necessary because:

  1. tests now get executed because of this fix
  2. the JSON format needs to be escaped
  3. the number of tests and expected passes is really 1 because the
     test path given specifies a single test.

Signed-off-by: wangpeng <[email protected]>
Signed-off-by: Cleber Rosa <[email protected]>
@clebergnu clebergnu force-pushed the class_dependencies_all_tests branch from 1e1b96b to 9334ad4 Compare January 13, 2025 20:55
@clebergnu
Copy link
Contributor Author

@wangp-h FYI, there is some issue with requirements under the Podman spawner:

2025-01-13T21:01:15.6506835Z  (nrunner-requirement-25/28) selftests/functional/serial/requirements.py:BasicTest.test_dependency_recipe;process: STARTED
2025-01-13T21:01:17.6698911Z  (nrunner-requirement-25/28) selftests/functional/serial/requirements.py:BasicTest.test_dependency_recipe;process:  PASS (1.98 s)
2025-01-13T21:01:18.0247026Z  (nrunner-requirement-26/28) selftests/functional/serial/requirements.py:BasicTest.test_dependency_recipe;podman: STARTED
2025-01-13T21:01:21.7096418Z  (nrunner-requirement-26/28) selftests/functional/serial/requirements.py:BasicTest.test_dependency_recipe;podman:  FAIL: 1 != 0 (3.50 s)
2025-01-13T21:01:22.0646239Z  (nrunner-requirement-27/28) selftests/functional/serial/requirements.py:BasicTest.test_dependency_recipe;lxc: STARTED
2025-01-13T21:01:24.1356628Z  (nrunner-requirement-27/28) selftests/functional/serial/requirements.py:BasicTest.test_dependency_recipe;lxc:  PASS (2.02 s)
2025-01-13T21:01:24.4399803Z  (nrunner-requirement-28/28) selftests/functional/serial/requirements.py:BasicTest.test_dependency_recipe;remote: STARTED
2025-01-13T21:01:26.4590212Z  (nrunner-requirement-28/28) selftests/functional/serial/requirements.py:BasicTest.test_dependency_recipe;remote:  PASS (1.99 s)

Also, the test is broken because it does not take into account other spawners (it actually uses process in all but podman) still make it believe that it does that them into account.

@clebergnu clebergnu marked this pull request as draft January 20, 2025 16:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: In progress
Development

Successfully merging this pull request may close these issues.

2 participants