New issue
Advanced search Search tips

Issue 898734 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Closed: Jan 8
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 2
Type: Task



Sign in to add a comment

autotest platform_PrinterPpds: enable testing a printing pipeline outside CUPS

Project Member Reported by pawliczek@chromium.org, Oct 25

Issue description

Current autotest version allows for testing filters outside CUPS environment by running them one by one. However, to do that CUPS must be patched by hand by developer, so this kind of test cannot be run automatically.

The goal: refactor the autotest and prepare a control file that can run this kind of testing without manual intervention.

Problems to solve:
- replace the patch for CUPS by a procedure extracting the printing pipeline from CUPS logs
- enable debug level for CUPS (how to edit /ets/cupsd/* files?)
- gzip intermediate outputs (being passed between filters) to avoid a problem with disk space; currently we can test 8 PPD files concurrently on a device with 2GB available space in /tmp; some devices has only ~1GB available
- add a separate parameter enabling this kind of test (currently it is run only by the "control.all_outputs")
 
Description: Show this description
Description: Show this description
Cc: skau@chromium.org ka...@chromium.org
Labels: Bolton-Testing OS-Chrome
Status: Started (was: Assigned)
Project Member

Comment 5 by bugdroid1@chromium.org, Jan 6

The following revision refers to this bug:
  https://chromium.googlesource.com/chromiumos/third_party/autotest/+/29170e10c23cf2398e207b7a0d4622f8761eb037

commit 29170e10c23cf2398e207b7a0d4622f8761eb037
Author: Piotr Pawliczek <pawliczek@google.com>
Date: Sun Jan 06 06:44:01 2019

autotest platform_PrinterPpds: upgrade to version 3

This is a new release of the autotest platform_PrinterPpds. It was extended by
a parser of /var/log/messages. The parser can extract CUPS logs and interpret
them, what allows for better detection of internal errors. Tests can be also
run in "debug" mode. In this mode CUPS log level is increased and the parser
extracts whole printing pipeline as a bash script. This script can be run
outside CUPS for debug purposes.

BUG= chromium:898734 
TEST=Tested on elm and nautilus

Change-Id: I7de2fe36d46b0c72c55767910d4ebe2f4e1d467c
Reviewed-on: https://chromium-review.googlesource.com/1369116
Commit-Ready: Piotr Pawliczek <pawliczek@chromium.org>
Tested-by: Piotr Pawliczek <pawliczek@chromium.org>
Reviewed-by: Sean Kau <skau@chromium.org>

[rename] https://crrev.com/29170e10c23cf2398e207b7a0d4622f8761eb037/client/site_tests/platform_PrinterPpds/control.100_test
[copy] https://crrev.com/29170e10c23cf2398e207b7a0d4622f8761eb037/client/site_tests/platform_PrinterPpds/control.all_dump_debug
[rename] https://crrev.com/29170e10c23cf2398e207b7a0d4622f8761eb037/client/site_tests/platform_PrinterPpds/control.all_dump
[delete] https://crrev.com/221174956a10796906b6611f21b5a68c917daf5f/client/site_tests/platform_PrinterPpds/cups_log_pipelines.patch
[add] https://crrev.com/29170e10c23cf2398e207b7a0d4622f8761eb037/client/site_tests/platform_PrinterPpds/configurator.py
[modify] https://crrev.com/29170e10c23cf2398e207b7a0d4622f8761eb037/client/site_tests/platform_PrinterPpds/archiver.py
[modify] https://crrev.com/29170e10c23cf2398e207b7a0d4622f8761eb037/client/site_tests/platform_PrinterPpds/readme.txt
[rename] https://crrev.com/29170e10c23cf2398e207b7a0d4622f8761eb037/client/site_tests/platform_PrinterPpds/control.all_test
[delete] https://crrev.com/221174956a10796906b6611f21b5a68c917daf5f/client/site_tests/platform_PrinterPpds/control.all
[add] https://crrev.com/29170e10c23cf2398e207b7a0d4622f8761eb037/client/site_tests/platform_PrinterPpds/log_reader.py
[copy] https://crrev.com/29170e10c23cf2398e207b7a0d4622f8761eb037/client/site_tests/platform_PrinterPpds/control.all_test_debug
[add] https://crrev.com/29170e10c23cf2398e207b7a0d4622f8761eb037/client/site_tests/platform_PrinterPpds/control.100_dump_debug
[rename] https://crrev.com/29170e10c23cf2398e207b7a0d4622f8761eb037/client/site_tests/platform_PrinterPpds/digests/blacklist.txt
[delete] https://crrev.com/221174956a10796906b6611f21b5a68c917daf5f/client/site_tests/platform_PrinterPpds/control.100
[modify] https://crrev.com/29170e10c23cf2398e207b7a0d4622f8761eb037/client/site_tests/platform_PrinterPpds/platform_PrinterPpds.py
[copy] https://crrev.com/29170e10c23cf2398e207b7a0d4622f8761eb037/client/site_tests/platform_PrinterPpds/control.100_dump
[copy] https://crrev.com/29170e10c23cf2398e207b7a0d4622f8761eb037/client/site_tests/platform_PrinterPpds/control.100_test_debug
[modify] https://crrev.com/29170e10c23cf2398e207b7a0d4622f8761eb037/client/site_tests/platform_PrinterPpds/helpers.py

Status: Fixed (was: Started)

Sign in to add a comment