Skip to content

Conversation

@adam-urbanczyk
Copy link
Member

@adam-urbanczyk adam-urbanczyk commented Jun 9, 2023

Use latest OCCT

@codecov
Copy link

codecov bot commented Jun 9, 2023

Codecov Report

Merging #1343 (9770fca) into master (76dbeef) will not change coverage.
The diff coverage is n/a.

❗ Current head 9770fca differs from pull request most recent head cd5653e. Consider uploading reports for the commit cd5653e to get more accurate results

@@           Coverage Diff           @@
##           master    #1343   +/-   ##
=======================================
  Coverage   94.12%   94.12%           
=======================================
  Files          27       27           
  Lines        5671     5671           
  Branches      961      961           
=======================================
  Hits         5338     5338           
  Misses        199      199           
  Partials      134      134           

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@adam-urbanczyk adam-urbanczyk marked this pull request as draft June 11, 2023 08:57
@adam-urbanczyk adam-urbanczyk marked this pull request as ready for review July 11, 2023 04:34
Copy link
Member

@jmwright jmwright left a comment

Choose a reason for hiding this comment

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

I think this looks fine, thanks @adam-urbanczyk

I'll get a beta PyPI package of cadquery-ocp 7.7.1 published after these changes are merged.

@lorenzncode
Copy link
Member

I see that pytest passed in azure. When I test locally I get pytest failures (user error or actual issue?).

$ conda list "python_abi|cadquery|ocp|occt"
# packages in environment at /home/lorenzn/tools/mambaforge_230715/envs/ocp771:
#
# Name                    Version                   Build  Channel
cadquery                  2.4.0.dev0                dev_0    <develop>
occt                      7.7.1           all_h16763a6_201    conda-forge
ocp                       7.7.1.0         py310ha643c62_1    conda-forge
ocp-stubs                 7.7.0                    pypi_0    pypi
python_abi                3.10                    3_cp310    conda-forge

partial pytest output

$ pytest tests/test_assembly.py -k test_colors_fused_assy --disable-warnings --sw
...
>                       if ctool.GetColor_s(
                            child, XCAFDoc_ColorType.XCAFDoc_ColorGen, color_subshape
                        ) or ctool.GetColor(
                            child, XCAFDoc_ColorType.XCAFDoc_ColorSurf, color_subshape
                        ):
E                       TypeError: GetColor_s(): incompatible function arguments. The following argument types are supported:
E                           1. (L: OCP.TDF.TDF_Label, type: OCP.XCAFDoc.XCAFDoc_ColorType, colorL: OCP.TDF.TDF_Label) -> bool
E                       
E                       Invoked with: <OCP.TDF.TDF_Label object at 0x7fd27035cf30>, <XCAFDoc_ColorType.XCAFDoc_ColorGen: 0>, <OCP.Quantity.Quantity_ColorRGBA object at 0x7fd26f939af0>

tests/test_assembly.py:399: TypeError
======================================================================================= short test summary info ========================================================================================
FAILED tests/test_assembly.py::test_colors_fused_assy[empty_top_assy-expected0] - TypeError: GetColor_s(): incompatible function arguments. The following argument types are supported:
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: Test failed, continuing from this test next run. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
============================================================================= 1 failed, 68 deselected, 7 warnings in 1.12s =============================================================================

@adam-urbanczyk
Copy link
Member Author

Are you sure you are using the corect version of the tests? Both azure and appveyor pass.

@adam-urbanczyk
Copy link
Member Author

e.g. I cannot find or ctool.GetColor(, in this PR.

@lorenzncode
Copy link
Member

No, I did not have the correct version of the tests. Still I reproduced the test failure after updating to the PR branch.

After debug I found the pip package cadquery-ocp was installed in my conda env. I had not expected that and not sure how it got installed in my env. The tests now pass after removing the pip package.

@adam-urbanczyk
Copy link
Member Author

Alright, shall we merge then?

@jmwright
Copy link
Member

Alright, shall we merge then?

+1

Copy link
Member

@lorenzncode lorenzncode left a comment

Choose a reason for hiding this comment

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

Yes, please go ahead. Thanks!

@lorenzncode lorenzncode mentioned this pull request Jul 17, 2023
@adam-urbanczyk adam-urbanczyk merged commit cb2823d into master Jul 17, 2023
@jmwright jmwright deleted the ocp771 branch October 28, 2025 20:17
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.

4 participants