Thanks to visit codestin.com
Credit goes to github.com

Skip to content

.github: fix simulator CI caused by imcompatibility between python3.10 and nosetests #10753

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 1 commit into from
Apr 18, 2025

Conversation

weizhouapache
Copy link
Member

Description

This PR fixes the issue with simulator CI

==== Marvin Init Successful ====
    elif isfunction(test) and self.selector.wantFunction(test):
  File "/home/runner/.local/lib/python3.10/site-packages/nose/selector.py", line 149, in wantFunction
    plug_wants = self.plugins.wantFunction(function)
  File "/home/runner/.local/lib/python3.10/site-packages/nose/plugins/manager.py", line 99, in __call__
    return self.call(*arg, **kw)
  File "/home/runner/.local/lib/python3.10/site-packages/nose/plugins/manager.py", line [167](https://github.com/apache/cloudstack/actions/runs/14532936308/job/40775972427#step:14:168), in simple
    result = meth(*arg, **kw)
  File "/home/runner/.local/lib/python3.10/site-packages/nose/plugins/attrib.py", line 278, in wantFunction
    return self.validateAttrib(function)
  File "/home/runner/.local/lib/python3.10/site-packages/nose/plugins/attrib.py", line 242, in validateAttrib
    if isinstance(value, collections.Callable):
AttributeError: module 'collections' has no attribute 'Callable'

Types of changes

  • Breaking change (fix or feature that would cause existing functionality to change)
  • New feature (non-breaking change which adds functionality)
  • Bug fix (non-breaking change which fixes an issue)
  • Enhancement (improves an existing feature and functionality)
  • Cleanup (Code refactoring and cleanup, that may add test cases)
  • build/CI
  • test (unit or integration test code)

Feature/Enhancement Scale or Bug Severity

Feature/Enhancement Scale

  • Major
  • Minor

Bug Severity

  • BLOCKER
  • Critical
  • Major
  • Minor
  • Trivial

Screenshots (if appropriate):

How Has This Been Tested?

How did you try to break this feature and the system with this change?

Copy link

codecov bot commented Apr 18, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 15.17%. Comparing base (8c9216d) to head (9c13c47).
Report is 3 commits behind head on 4.19.

Additional details and impacted files
@@            Coverage Diff            @@
##               4.19   #10753   +/-   ##
=========================================
  Coverage     15.16%   15.17%           
- Complexity    11333    11337    +4     
=========================================
  Files          5415     5415           
  Lines        474916   474912    -4     
  Branches      57926    57926           
=========================================
+ Hits          72043    72061   +18     
+ Misses       394817   394793   -24     
- Partials       8056     8058    +2     
Flag Coverage Δ
uitests 4.28% <ø> (ø)
unittests 15.89% <ø> (+<0.01%) ⬆️

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

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@weizhouapache weizhouapache marked this pull request as ready for review April 18, 2025 10:20
Copy link
Contributor

@DaanHoogland DaanHoogland left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good

@DaanHoogland
Copy link
Contributor

ci only, failures will have to be dealt with later

@DaanHoogland DaanHoogland merged commit f055268 into apache:4.19 Apr 18, 2025
23 of 25 checks passed
@DaanHoogland DaanHoogland deleted the 4.19-fix-ci branch April 18, 2025 11:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants