Skip to content

Example logo_and_text Test Failures #3566

Description

@thehans

I just ran ctest -C All to see if there were any newly fixed or failing tests since last release, and I saw that these tests are now failing:

  • cgalpngtest_logo_and_text
  • opencsgtest_logo_and_text
  • throwntogethertest_logo_and_text

These aren't reported as errors from regular CI tests, since they are omitted from the default test suite, probably due to time constraints.

The console output of these tests include the warning:

WARNING: Viewall and autocenter disabled in favor of $vp*

This scad file indeed defines its own $vp* variables, which I guess used to be ignored when run from command line, until this behavior was changed somewhat recently?

Should examples/Basics/logo_and_text.scad just have those custom view settings deleted (maybe its desired to keep for exporting merch images etc.)?

Is it still possible to override the $vp* variables when they are explicitly written in the scad file like that, so maybe just a custom test command could also solve it?

It does get clipped terribly when exported to a square aspect ratio, as seen from test report:
Screenshot from 2020-12-31 16-59-03

Activity

  1. rcolyer commented on Dec 31, 2020

    @rcolyer
    Member

    Setting them to undef appears to remove the warning and restore the viewall/autocenter default behavior. That would repair the test without altering the example.

    -D'$vpr=undef;$vpt=undef;$vpd=undef'
    
  2. MichaelAtOz commented on Jan 1, 2021

    @MichaelAtOz
    Member

    The console output of these tests include the warning:

    WARNING: Viewall and autocenter disabled in favor of $vp*
    

    Looks like those options are default unless --camera is used.
    Does the WARNING contribute to test failure?

    used to be ignored when run from command line, until this behavior was changed somewhat recently?

    Yes, #1797 & #3440.

    The example looks bad as an example, so should probably be fixed.

    $vpt = [300, 0, 80];
    $vpd = 1600;
    

    Corrects the clipping via command line, at least on my systems.

    (maybe its desired to keep for exporting merch images etc.)?

    Nope.

    But this version matches the colour, spacing & style of the merch & web site.

    logo_and_text.zip

    Capture-logo_and_text

  3. thehans commented on Jan 1, 2021

    @thehans
    MemberAuthor

    Does the WARNING contribute to test failure?

    I think only if an "echotest" is run on the script, and it looks like there is no echotest for logo_and_text even with ctest -C All
    Even then, it would just require updating the expected .echo results ... assuming the existence of that WARNING is the expected behavior now.

    I'll make a PR with your suggested change and update the expected images.

  4. added a commit that references this issue on Jan 1, 2021
    f66bc9a
  5. added a commit that references this issue on Jan 3, 2021
    1f4a9f8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions