<?xml version="1.0" encoding="UTF-8"?>
<!-- 
============================================================================ 
Name        : metadata_filter__config_default.xml 
Part of     : Helium 

Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
All rights reserved.
This component and the accompanying materials are made available
under the terms of the License "Eclipse Public License v1.0"
which accompanies this distribution, and is available
at the URL "http://www.eclipse.org/legal/epl-v10.html".

Initial Contributors:
Nokia Corporation - initial contribution.

Contributors:

Description:

============================================================================
-->
<project name="metadata-filter-config" xmlns:hlm="http://www.nokia.com/helium">
    <description>
    Definitions of metadata filter inputs. 
    </description>
    <hlm:metadatafilterset id="filterset.common">
        <metadatafilterset filterfile="${helium.dir}/config/metadata_regex.csv" />
    </hlm:metadatafilterset>

    <!-- Unique filter id is generated for each filterset used during specific phase
        of the builds. Customer could override it by redifning the filterset
        with same id and add their own configuration on top of it. 
    -->
    <hlm:metadatafilterset id="filterset.genxml.ec">
        <metadatafilterset refid="filterset.common" />
    </hlm:metadatafilterset>


    <hlm:metadatafilterset id="filterset.test.ccm">
        <metadatafilter priority="error" regex="^ERROR:" description="" />
        <metadatafilter priority="warning" regex="^WARNING:.*" description="" />
        <metadatafilter priority="info" regex="^INFO:" />
    </hlm:metadatafilterset>

    <hlm:metadatafilterset id="filterset.qmake">
        <metadatafilter priority="error" regex="^Error processing project file:" description="qt error" />
        <metadatafilter priority="error" regex="^Result: [1-9][0-9]*" description="qt error" />
        <metadatafilterset refid="filterset.common" />
    </hlm:metadatafilterset>

    <hlm:metadatafilterset id="filterset.qt.configure">
        <metadatafilterset refid="filterset.common" />
    </hlm:metadatafilterset>

    <hlm:metadatafilterset id="filterset.sbs">
        <metadatafilterset refid="filterset.common" />
        <metadatafilterset refid="filterset.emake" />
    </hlm:metadatafilterset>

    <hlm:metadatafilterset id="filterset.sbs.cli">
        <metadatafilter priority="error" regex="^sbs:\s+error:.*" description="sbs cli error" />
        <metadatafilter priority="warning" regex="^sbs:\s+warning:.*" description="sbs cli warning" />
    </hlm:metadatafilterset>
    
    <hlm:metadatafilterset id="filterset.sbs.checksource">
        <metadatafilter priority="error" regex="^Actual case on disk   ->.*" description="sbs checksource error" />
    </hlm:metadatafilterset>

    <hlm:metadatafilterset id="filterset.compile">
        <metadatafilterset refid="filterset.common" />
        <hlm:metadatafilterset refid="filterset.compile.abld.deprecated" />
        <metadatafilterset refid="filterset.emake" />
    </hlm:metadatafilterset>
    
    <hlm:metadatafilterset id="filterset.compile.abld.deprecated">
        <metadatafilter priority="error" regex="^\s*ABLD is not supported with this build.*" description="" />
        <metadatafilter priority="error" regex="^\s*bldmake script can not be used in this env.*" description="" />
    </hlm:metadatafilterset>

    <hlm:metadatafilterset id="filterset.genxml.merge">
        <metadatafilter priority="error" regex="^ERROR:.*" description="" />
        <metadatafilter priority="error" regex=".*Context:.*" description="" />
        <metadatafilter priority="error" regex=".*Can't open perl script.*" description="" />
    </hlm:metadatafilterset>

    <hlm:metadatafilterset id="filterset.buildarea.prep">
        <metadatafilterset refid="filterset.common" />
    </hlm:metadatafilterset>

    <hlm:metadatafilterset id="filterset.ant.output">
        <metadatafilter priority="warning" regex="\d+\)\s*ERROR:.*Traceback.*" description="imaker errors from ant log are treated as warning."/>
        <metadatafilter priority="warning" regex="ERROR.*:File\s+.*\s+has changed and the package version has not been updated." description="Validation script errors already handled by signaling."/>
        <metadatafilter priority="error" regex="^ERROR:.*" />
        <metadatafilter priority="error" regex="^.*is not recognized as an internal or external command.*" />
        <metadatafilter priority="error" regex="^.*Traceback \(most recent call last\).*" />
        <metadatafilter priority="error" regex="^Application encountered an unexpected error\.\s*Stopping\.\s*" />
        <metadatafilter priority="warning" regex="^WARNING:.*" />
    </hlm:metadatafilterset>

    <hlm:metadatafilterset id="filterset.imaker">
        <metadatafilter priority="error" regex="^\s*Total duration:\s+\d+:\d+\s+Status:\s+FAILED" description="" />
        <metadatafilter priority="error" regex="^.+- DOESN'T EXIST" description="" />
        <metadatafilterset refid="filterset.common" />
    </hlm:metadatafilterset>

    <hlm:metadatafilterset id="filterset.temprecord">
        <metadatafilterset refid="filterset.common" />
    </hlm:metadatafilterset>
    
    <hlm:metadatafilterset id="filterset.dp">
        <metadatafilterset refid="filterset.common" />
    </hlm:metadatafilterset>
    
    <hlm:metadatafilterset id="filterset.fota">
        <metadatafilterset refid="filterset.common" />
    </hlm:metadatafilterset>
    
    <hlm:metadatafilterset id="filterset.archive.nopolicy">
        <metadatafilterset refid="filterset.common" />
    </hlm:metadatafilterset>
    
    <hlm:metadatafilterset id="filterset.getenv">
        <metadatafilterset refid="filterset.common" />
    </hlm:metadatafilterset>
    
    <hlm:metadatafilterset id="filterset.archive.policy">
        <metadatafilter priority="error" regex="^POLICY_ERROR:" description="" />
        <metadatafilter priority="warning" regex="^POLICY_WARNING:" description="" /> 
        <metadatafilter priority="info" regex="^POLICY_INFO:" description="" /> 
    </hlm:metadatafilterset>
    
    <hlm:metadatafilterset id="filterset.prepWorkArea">
        <metadatafilterset refid="filterset.common" />
    </hlm:metadatafilterset>

    <hlm:metadatafilterset id="filterset.ats">
        <metadatafilterset refid="filterset.common" />
    </hlm:metadatafilterset>
    
    <hlm:metadatafilterset id="filterset.matti">
        <metadatafilterset refid="filterset.common" />
    </hlm:metadatafilterset>
    
    <hlm:metadatafilterset id="filterset.aste">
        <metadatafilterset refid="filterset.common" />
    </hlm:metadatafilterset>

    <hlm:metadatafilterset id="filterset.sisfiles">
        <metadatafilter priority="error" regex=".*[Ee]rror\s*:\s+.*" description="To capture the error generated by makesis" />
        <metadatafilter priority="error" regex=".*file I/O fault.*" description="To capture the error generated by signsis" />
    </hlm:metadatafilterset>
    
    <hlm:metadatafilterset id="filterset.emake">
        <metadatafilter priority="error" regex="^ERROR\s+EC\d+:.*$" description="To capture emake errors" />
        <metadatafilter priority="warning" regex="^WARNING\s+EC\d+:.*$" description="To capture emake warnings" />
    </hlm:metadatafilterset>
    
</project>
