<commit_before>#!/usr/bin/env python
# Copyright (c) 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

"""Compares the GM images from archived webpages to the baselines.

This module can be run from the command-line like this:

cd buildbot/third_party/chromium_buildbot/slave/\
Skia_Shuttle_Ubuntu12_ATI5770_Float_Release_64/build/trunk

PYTHONPATH=../../../../site_config:\
../../../../scripts \
python ../../../../../../slave/skia_slave_scripts/\
compare_and_upload_webpage_gms.py \
--configuration "Debug" --target_platform "" --revision 0 \
--autogen_svn_baseurl "" --make_flags "" --test_args "" --gm_args "" \
--bench_args "" --num_cores 8 --perf_output_basedir "" \
--builder_name Skia_Shuttle_Ubuntu12_ATI5770_Float_Release_64 \
--got_revision 0 --gm_image_subdir base-shuttle_ubuntu12_ati5770 \
--is_try False --do_upload_results True --dest_gsbase gs://rmistry

"""

import os
import posixpath
import shutil
import sys
import tempfile

from utils import file_utils
from utils import gs_utils
from utils import shell_utils
from utils import sync_bucket_subdir
from build_step import PLAYBACK_CANNED_ACL
from build_step import BuildStep, BuildStepWarning

import build_step

SKP_TIMEOUT_MULTIPLIER = 8
LAST_COMPARISON_FILENAME = 'LAST_COMPARISON_SUCCEEDED'

GM_COMPARISON_LINES_TO_EXTRACT_IMAGES = [
  'contain the same pixel values, but not the same bits',
  'have identical dimensions but some differing pixels',
  'have differing dimensions',
]

IMAGES_FOR_UPLOAD_CHUNKS = [
  'base-macmini',
  'base-macmini-lion-float',
  'base-shuttle_ubuntu12_ati5770',
]
<commit_msg>Removing the EqualPixels case from compare_and_upload_webpage_gms.GM_COMPARISON_LINES_TO_EXTRACT_IMAGES Review URL: https://codereview.appspot.com/7050043<commit_after>#!/usr/bin/env python
# Copyright (c) 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

"""Compares the GM images from archived webpages to the baselines.

This module can be run from the command-line like this:

cd buildbot/third_party/chromium_buildbot/slave/\
Skia_Shuttle_Ubuntu12_ATI5770_Float_Release_64/build/trunk

PYTHONPATH=../../../../site_config:\
../../../../scripts \
python ../../../../../../slave/skia_slave_scripts/\
compare_and_upload_webpage_gms.py \
--configuration "Debug" --target_platform "" --revision 0 \
--autogen_svn_baseurl "" --make_flags "" --test_args "" --gm_args "" \
--bench_args "" --num_cores 8 --perf_output_basedir "" \
--builder_name Skia_Shuttle_Ubuntu12_ATI5770_Float_Release_64 \
--got_revision 0 --gm_image_subdir base-shuttle_ubuntu12_ati5770 \
--is_try False --do_upload_results True --dest_gsbase gs://rmistry

"""

import os
import posixpath
import shutil
import sys
import tempfile

from utils import file_utils
from utils import gs_utils
from utils import shell_utils
from utils import sync_bucket_subdir
from build_step import PLAYBACK_CANNED_ACL
from build_step import BuildStep, BuildStepWarning

import build_step

SKP_TIMEOUT_MULTIPLIER = 8
LAST_COMPARISON_FILENAME = 'LAST_COMPARISON_SUCCEEDED'

GM_COMPARISON_LINES_TO_EXTRACT_IMAGES = [
  'have identical dimensions but some differing pixels',
  'have differing dimensions',
]

IMAGES_FOR_UPLOAD_CHUNKS = [
  'base-macmini',
  'base-macmini-lion-float',
  'base-shuttle_ubuntu12_ati5770',
]

{'fraction_non_alphanumeric': 0.1032183241519281, 'fraction_numerical': 0.022905189910118876, 'mean_word_length': 4.573505654281099, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5393502', 'n_tokens_mistral': 1260, 'n_tokens_neox': 1156, 'n_words': 296}