make test should build and/or update the test suite if necessary #100843

Open
opened 2022-09-06 02:45:17 +02:00 by Loren Osborn · 10 comments

System Information
Operating system: macOS 12.3.1
Graphics card: AMD Radeon Pro 5500M / Intel UHD Graphics 630

Blender Version
Broken: (example: ff7a7a6f77)
Worked: (not sure if this ever worked as intended)

Short description of error

linux_dr@Lorens-MBP blender % make test

should ensure that the test suite exists and is up to date before attempting to run it.

Exact steps for others to reproduce the error
From the command prompt type cd ~/blender-git/blender ; rm -rf ../build_* ; make test:

linux_dr@Lorens-MBP blender % cd ~/blender-git/blender ; rm -rf ../build_* ; make test
ctest . --output-on-failure -O /Users/linux_dr/blender-git/build_darwin/tests/log.txt
Test project /Users/linux_dr/blender-git/build_darwin
No tests were found!!!
linux_dr@Lorens-MBP blender %

You will see in the output No tests were found!!! because the test suite doesn't exist yet.

I believe the bug also appears as running stale tests after the tests or code are modified, but describing how to test that is a bit more involved.

Developer notes:
I was looking at this as an issue in GNUmakefile, which is outside the mainline CMake-based Blender build pipeline. In discussions with @ideasman42, he suggested I try to fix it in build_files/utils/make_test.py, so the whole pipeline can benefit.

**System Information** Operating system: macOS 12.3.1 Graphics card: AMD Radeon Pro 5500M / Intel UHD Graphics 630 **Blender Version** Broken: (example: ff7a7a6f77a) Worked: (not sure if this ever worked as intended) **Short description of error** ``` linux_dr@Lorens-MBP blender % make test ``` should ensure that the test suite exists and is up to date before attempting to run it. **Exact steps for others to reproduce the error** From the command prompt type `cd ~/blender-git/blender ; rm -rf ../build_* ; make test`: ``` linux_dr@Lorens-MBP blender % cd ~/blender-git/blender ; rm -rf ../build_* ; make test ctest . --output-on-failure -O /Users/linux_dr/blender-git/build_darwin/tests/log.txt Test project /Users/linux_dr/blender-git/build_darwin No tests were found!!! linux_dr@Lorens-MBP blender % ``` You will see in the output `No tests were found!!!` because the test suite doesn't exist yet. I believe the bug also appears as running stale tests after the tests or code are modified, but describing how to test that is a bit more involved. **Developer notes:** I was looking at this as an issue in `GNUmakefile`, which is outside the mainline CMake-based Blender build pipeline. In discussions with @ideasman42, he suggested I try to fix it in `build_files/utils/make_test.py`, so the whole pipeline can benefit.
Author

Added subscriber: @linux_dr

Added subscriber: @linux_dr
Member

Added subscribers: @ideasman42, @PratikPB2123

Added subscribers: @ideasman42, @PratikPB2123
Member

Changed status from 'Needs Triage' to: 'Confirmed'

Changed status from 'Needs Triage' to: 'Confirmed'
Member

Looks like you've discussed about this with @ideasman42 already. I'll mark it as "confirmed" (feel free to revert the status)
AFAIK make update adds or updates the existing test at present

Looks like you've discussed about this with @ideasman42 already. I'll mark it as "confirmed" (feel free to revert the status) AFAIK `make update` adds or updates the existing test at present
Author

In #100843#1412853, @PratikPB2123 wrote:
Looks like you've discussed about this with @ideasman42 already. I'll mark it as "confirmed" (feel free to revert the status)

We've only discussed how to resolve this. I am unaware of anyone trying to reproduce this besides myself. (I'm especially curious if Linux or Windows builds work any better.)

It should be easy enough to test, but I would either try to reproduce it yourself, or change it back to "unconfirmed".

> In #100843#1412853, @PratikPB2123 wrote: > Looks like you've discussed about this with @ideasman42 already. I'll mark it as "confirmed" (feel free to revert the status) We've only discussed how to resolve this. I am unaware of anyone trying to reproduce this besides myself. (I'm especially curious if Linux or Windows builds work any better.) It should be easy enough to test, but I would either try to reproduce it yourself, or change it back to "unconfirmed".
Author

Changed status from 'Confirmed' to: 'Needs Triage'

Changed status from 'Confirmed' to: 'Needs Triage'
Author

I reverted this to "Needs Triage" as I am only aware of it being specifically seen on my machine so far.

Also
This may originally have been a "by design" issue, but as, for make, this is contrary to expected behavior, I am considering this a "defect".

I reverted this to "Needs Triage" as I am only aware of it being specifically seen on my machine so far. **Also** This may originally have been a "by design" issue, but as, for `make`, this is contrary to expected behavior, I am considering this a "defect".
Member

Added subscriber: @OmarEmaraDev

Added subscriber: @OmarEmaraDev
Member

Changed status from 'Needs Triage' to: 'Confirmed'

Changed status from 'Needs Triage' to: 'Confirmed'
Member

I can reproduce the behavior on Linux and the python test file is straightforward, so I don't think we need any more reproduction.
But since this is not a bug, but rather something you intend to do and discuss, I will change the subtype to match the intent.

I can reproduce the behavior on Linux and the python test file is straightforward, so I don't think we need any more reproduction. But since this is not a bug, but rather something you intend to do and discuss, I will change the subtype to match the intent.
Philipp Oeser removed the
Interest
Platforms, Builds & Tests
label 2023-02-10 08:58:22 +01:00
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
3 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#100843
No description provided.