Compositor tests: reorganize folders to reflect node grouping #120949

Open
opened 2024-04-22 20:51:49 +02:00 by Habib Gahbiche · 9 comments
Member

Currently the folders in the test folder tests/data/compositor/ are organized as follows:

folder now

It should instead reflect the grouping used when adding a new node:

should be
Currently the folders in the test folder `tests/data/compositor/` are organized as follows: <img src="/attachments/e91c5887-4dda-4ffb-897d-cc28148aafce" alt="folder now" width="200"/> It should instead reflect the grouping used when adding a new node: <img src="/attachments/14fcf12f-0cd0-4ece-8fe3-764dff79294f" alt="should be" width="200"/>
Habib Gahbiche added the
Type
To Do
Meta
Good First Issue
labels 2024-04-22 20:52:01 +02:00
Habib Gahbiche added this to the Compositing project 2024-04-22 20:52:19 +02:00

Hello, can I take this as first issue ?

I think it's a good way to improve my understanding of how source are organized

Hello, can I take this as first issue ? I think it's a good way to improve my understanding of how source are organized
Member

Hi @Maxime-Cots Yes. Please take it on if you want to, and talk with developers when you have questions :D

Hi @Maxime-Cots Yes. Please take it on if you want to, and talk with developers when you have questions :D
Member

While at it, we should rename the parent folder to compositor_cpu_* and compositor_gpu_*.

While at it, we should rename the parent folder to `compositor_cpu_*` and `compositor_gpu_*`.

While at it, we should rename the parent folder to compositor_cpu_* and compositor_gpu_*.

Did you mean rename these fixture folders

image

or this one and split test and fixtures between compositor_cpu and compositor_gpu ?

image

> While at it, we should rename the parent folder to `compositor_cpu_*` and `compositor_gpu_*`. Did you mean rename these fixture folders ![image](/attachments/dde41dda-10d3-4e21-bac0-a86ec3c8cd1d) or this one and split test and fixtures between compositor_cpu and compositor_gpu ? ![image](/attachments/d817b0ab-50f6-47bf-a8c5-abaa6c38704d)
8.1 KiB
3.9 KiB
Member

@Maxime-Cots The former, along with the actual python test files.

The reasoning is:

  • Make it easier to use a wildcard when executing the compositor tests. compositor_cpu instead of 'compositor_*_cpu'.
  • Indicate that we are testing the GPU compositor specifically, since this is not a general realtime compositor test.
@Maxime-Cots The former, along with the actual python test files. The reasoning is: - Make it easier to use a wildcard when executing the compositor tests. `compositor_cpu` instead of `'compositor_*_cpu'`. - Indicate that we are testing the GPU compositor specifically, since this is not a general realtime compositor test.

So if I understand well, I need to :

  1. Split compositor folder test in two separated part called respectively :
  • compositor_cpu
  • compositor_gpu
  1. Move dedicated fixtures in corresponding folder.
  2. Rename each subfolder to match with compositor context menu
So if I understand well, I need to : 1. Split compositor folder test in two separated part called respectively : - compositor_cpu - compositor_gpu 2. Move dedicated fixtures in corresponding folder. 3. Rename each subfolder to match with compositor context menu
Member

@Maxime-Cots I would just do it in two steps to not make confusion, so do Habib's original task for now.

@Maxime-Cots I would just do it in two steps to not make confusion, so do Habib's original task for now.

Ok, I will do this,

I saw that test data is located in another git repository, is there any rules, guidelines, explanations about how we can commit to the data repository ?

Moreover some test file name doesn't match the its node name, as an example :

  • node_chroma_matte.blend -> Chroma Key

So, do you want update test file name to match node name ?

Ok, I will do this, I saw that test data is located in another git repository, is there any rules, guidelines, explanations about how we can commit to the data repository ? Moreover some test file name doesn't match the its node name, as an example : - node_chroma_matte.blend -> Chroma Key So, do you want update test file name to match node name ?
Author
Member

Generally, you should follow the pull request workflow. For working with test data, you should follow the instructions here.

Updating the file names to match the node name seems like a good idea to me :)

Generally, you should follow the [pull request workflow](https://developer.blender.org/docs/handbook/contributing/pull_requests/). For working with test data, you should follow the instructions [here](https://developer.blender.org/docs/handbook/testing/setup/#committing-test-data ). Updating the file names to match the node name seems like a good idea to me :)
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
4 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#120949
No description provided.