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

Move nodes and templates to AliceVision's repository #2697

Merged
merged 9 commits into from
Mar 19, 2025

Conversation

cbentejac
Copy link
Contributor

@cbentejac cbentejac commented Mar 17, 2025

Description

This PR relates to alicevision/AliceVision#1845 and removes all the nodes (besides the Publish node) and templates from Meshroom's repositories.

The Publish node is moved into a "general" node folder.

Unit tests that were relying on AliceVision nodes are updated to use test nodes instead. The test_templatesVersion test is also removed from the test suite, but in order to keep the mechanism that allows to test whether templates are up-to-date, a test.py providing such utility functions is added in meshroom.core.

These templates are moved to AliceVision's repository.
The `Publish` node will remain the only default node that comes with
Meshroom.
The nodes contained in these folders, except for the `Publish` node,
are all moved to AliceVision's repository.
@cbentejac cbentejac added this to the Meshroom 2025.1.0 milestone Mar 17, 2025
@cbentejac cbentejac self-assigned this Mar 17, 2025
…lder

Since the "pipelines" folder does not exist anymore in Meshroom, there
is no use to try and look for any file in it. Instead, we now only look
for the paths that have been provided with the
`MESHROOM_PIPELINE_TEMPLATES_PATH` environment variable.
`test_multiviewPipeline` relied on the photogrammetry template and its
nodes, which are not a part of Meshroom anymore.

The test is rewritten to check the same items (serialization, graph
equality, etc.) but using dedicated test nodes (which already existed)
and template, which is added with this commit.

The path of the template is added to `MESHROOM_PIPELINE_TEMPLATES_PATH`
when loading the test module.
This test checked that every node in all the available templates was free
of any compatibility issue. As templates are not provided with
Meshroom, it is not needed anymore.
…idation

For now, it contains methods allowing to check whether a template provided
as an argument is valid (i.e. has no compatibility issue).

It performs a check that's very similar to what `test_templatesVersions`
was doing, but it allows this check to be performed from outside of
Meshroom.
The tests in that file were using AliceVision nodes, which are now out
of Meshroom's repository.
Copy link

codecov bot commented Mar 17, 2025

Codecov Report

Attention: Patch coverage is 98.24561% with 2 lines in your changes missing coverage. Please review.

Project coverage is 79.01%. Comparing base (09720f6) to head (c3e8b88).
Report is 10 commits behind head on develop.

✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
meshroom/core/__init__.py 66.66% 1 Missing ⚠️
tests/__init__.py 75.00% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #2697      +/-   ##
===========================================
+ Coverage    73.43%   79.01%   +5.58%     
===========================================
  Files          134       39      -95     
  Lines         7924     5809    -2115     
===========================================
- Hits          5819     4590    -1229     
+ Misses        2105     1219     -886     

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

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

…imes

By performing a `initNodes()` every single time `checkTemplateVersions`
was called without ever unregistering the nodes, warnings about nodes
being already registered were raised when for example calling
`checkAllTemplatesVersions`.
@fabiencastan fabiencastan merged commit bb9df08 into develop Mar 19, 2025
5 checks passed
@fabiencastan fabiencastan deleted the dev/addAVNodes branch March 19, 2025 11:00
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.

2 participants