Giter VIP home page Giter VIP logo

Comments (9)

michaelrsweet avatar michaelrsweet commented on June 11, 2024

OK, so this is another issue with ipptool - if the repeat limit is reached that is supposed to be a FAIL.

from ippeveselfcert.

michaelrsweet avatar michaelrsweet commented on June 11, 2024

Fix committed to ippsample project... Will get mirrored here as soon as the CUPS 2.2.4 work is complete.

[master 5b43e67] ipptool did not error out when a repeated test failed #20

from ippeveselfcert.

wifiprintguy avatar wifiprintguy commented on June 11, 2024

So I guess the source of the problem was a corner case with the handling of an out-of-range or unexpected value when handling "WITH-VALUE >6", because if I do something like the test below, the test fails as expected (FAIL and return value != 0) even before the fix:

    {
        DELAY 5

        NAME "Get printer-uuid using an IPP Get-Printer-Attributes operation"

        OPERATION Get-Printer-Attributes
        Version 2.0

        GROUP operation
        ATTR charset attributes-charset utf-8
        ATTR language attributes-natural-language en
        ATTR uri printer-uri $uri
        ATTR keyword requested-attributes printer-uuid

        STATUS successful-ok

        EXPECT printer-fake-attribute REPEAT-NO-MATCH REPEAT-LIMIT 5

    }

from ippeveselfcert.

michaelrsweet avatar michaelrsweet commented on June 11, 2024

Yeah, the code was inconsistent about adding error messages to the current test when repeat was in use. Once I fixed that the test would consistently fail once the repeat limit was exceeded.

from ippeveselfcert.

rodriere avatar rodriere commented on June 11, 2024

While I am happy that reaching repeat limits will cause a failure with the new ipptool version, I wanted to remind this thread that a higher limit is necessary for slower printer mechanisms (6 ppm ISO color)

from ippeveselfcert.

michaelrsweet avatar michaelrsweet commented on June 11, 2024

One of the other changes coming in ipptool is the ability to control the delay interval between repeats - previously it varied from 1 to 8 seconds (average about 6 seconds), so it was difficult to control the total amount of time provided for the test to succeed. Now we'll be able to specify a fixed interval along with the number of retries so that we can provide enough time, even for the slowest printers.

from ippeveselfcert.

wifiprintguy avatar wifiprintguy commented on June 11, 2024

@rodriere what time limit do you suggest?

from ippeveselfcert.

rodriere avatar rodriere commented on June 11, 2024

@wifiprintguy We found printers that could take about 60 iterations (~ 2 minutes) to print the color.jpg and pass tests using the released ipptool version but I advised a REPEAT-LIMIT of 100 so that we don't revisit this issue again. However, if delays will be included within each repeat on the newer ipptool, then I suppose another fix could be to add a small delay while increasing the limit slightly.

from ippeveselfcert.

michaelrsweet avatar michaelrsweet commented on June 11, 2024

I've merged the CUPS upstream changes into the ippeveselfcert repository, so all of the changes needed to support this change are now in place.

from ippeveselfcert.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.