crash_test.conf.sample
author Vincent Tondellier <tonton+hg@team1664.org>
Tue, 16 Feb 2016 23:17:21 +0100
changeset 106 97bf7ebb6e44
parent 99 0e40a68ba421
child 107 6f411821b12b
permissions -rw-r--r--
Fix error when a crash is not in a group (invalid crashs mostly)
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
5b78b8c79d9c Initial commit
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
     1
{
78
0ebef32c34af Refactor everything
Vincent Tondellier <tonton+hg@team1664.org>
parents: 67
diff changeset
     2
  Processor => {
79
4ae8bb6f8a96 Small config reorganization
Vincent Tondellier <tonton+hg@team1664.org>
parents: 78
diff changeset
     3
    JobQueue => {
4ae8bb6f8a96 Small config reorganization
Vincent Tondellier <tonton+hg@team1664.org>
parents: 78
diff changeset
     4
      Backend => {
4ae8bb6f8a96 Small config reorganization
Vincent Tondellier <tonton+hg@team1664.org>
parents: 78
diff changeset
     5
        Minion => { Pg => "postgresql:///crashtest" },
78
0ebef32c34af Refactor everything
Vincent Tondellier <tonton+hg@team1664.org>
parents: 67
diff changeset
     6
      },
0ebef32c34af Refactor everything
Vincent Tondellier <tonton+hg@team1664.org>
parents: 67
diff changeset
     7
    },
79
4ae8bb6f8a96 Small config reorganization
Vincent Tondellier <tonton+hg@team1664.org>
parents: 78
diff changeset
     8
    CrashProcessor => {
4ae8bb6f8a96 Small config reorganization
Vincent Tondellier <tonton+hg@team1664.org>
parents: 78
diff changeset
     9
      Breakpad => {
4ae8bb6f8a96 Small config reorganization
Vincent Tondellier <tonton+hg@team1664.org>
parents: 78
diff changeset
    10
        JSONStackwalker => 'stackwalker',
4ae8bb6f8a96 Small config reorganization
Vincent Tondellier <tonton+hg@team1664.org>
parents: 78
diff changeset
    11
        SymbolsPath => 'data/breakpad-debug-symbols/*',
4ae8bb6f8a96 Small config reorganization
Vincent Tondellier <tonton+hg@team1664.org>
parents: 78
diff changeset
    12
      },
78
0ebef32c34af Refactor everything
Vincent Tondellier <tonton+hg@team1664.org>
parents: 67
diff changeset
    13
    },
99
0e40a68ba421 Rename sample config and add more examples
Vincent Tondellier <tonton+hg@team1664.org>
parents: 79
diff changeset
    14
    CrashSignatureExtractor => {
0e40a68ba421 Rename sample config and add more examples
Vincent Tondellier <tonton+hg@team1664.org>
parents: 79
diff changeset
    15
      C_Cpp => {
0e40a68ba421 Rename sample config and add more examples
Vincent Tondellier <tonton+hg@team1664.org>
parents: 79
diff changeset
    16
        GroupMaxDistance => 0.1,
0e40a68ba421 Rename sample config and add more examples
Vincent Tondellier <tonton+hg@team1664.org>
parents: 79
diff changeset
    17
        TopIrrelevant => [
0e40a68ba421 Rename sample config and add more examples
Vincent Tondellier <tonton+hg@team1664.org>
parents: 79
diff changeset
    18
          # Ignore these frames at the top of the stack when creating a crash signature (mostly exception handler and libc internal functions)
0e40a68ba421 Rename sample config and add more examples
Vincent Tondellier <tonton+hg@team1664.org>
parents: 79
diff changeset
    19
          "__cxxabiv1::__terminate",
0e40a68ba421 Rename sample config and add more examples
Vincent Tondellier <tonton+hg@team1664.org>
parents: 79
diff changeset
    20
          "__gnu_cxx::__verbose_terminate_handler",
0e40a68ba421 Rename sample config and add more examples
Vincent Tondellier <tonton+hg@team1664.org>
parents: 79
diff changeset
    21
          "std::terminate",
0e40a68ba421 Rename sample config and add more examples
Vincent Tondellier <tonton+hg@team1664.org>
parents: 79
diff changeset
    22
          "raise",
0e40a68ba421 Rename sample config and add more examples
Vincent Tondellier <tonton+hg@team1664.org>
parents: 79
diff changeset
    23
          "abort",
0e40a68ba421 Rename sample config and add more examples
Vincent Tondellier <tonton+hg@team1664.org>
parents: 79
diff changeset
    24
        ],
0e40a68ba421 Rename sample config and add more examples
Vincent Tondellier <tonton+hg@team1664.org>
parents: 79
diff changeset
    25
        TopFrame => [
0e40a68ba421 Rename sample config and add more examples
Vincent Tondellier <tonton+hg@team1664.org>
parents: 79
diff changeset
    26
          # Consider these frames as the first (from top) relevant frame of the crash
0e40a68ba421 Rename sample config and add more examples
Vincent Tondellier <tonton+hg@team1664.org>
parents: 79
diff changeset
    27
          # Order is important here, the first match will be selected
0e40a68ba421 Rename sample config and add more examples
Vincent Tondellier <tonton+hg@team1664.org>
parents: 79
diff changeset
    28
          qr/std::__throw_[a-z]+_error/,
0e40a68ba421 Rename sample config and add more examples
Vincent Tondellier <tonton+hg@team1664.org>
parents: 79
diff changeset
    29
          "__cxxabiv1::__cxa_throw",
0e40a68ba421 Rename sample config and add more examples
Vincent Tondellier <tonton+hg@team1664.org>
parents: 79
diff changeset
    30
        ],
0e40a68ba421 Rename sample config and add more examples
Vincent Tondellier <tonton+hg@team1664.org>
parents: 79
diff changeset
    31
        BottomIrrelevant => [
0e40a68ba421 Rename sample config and add more examples
Vincent Tondellier <tonton+hg@team1664.org>
parents: 79
diff changeset
    32
          # Ignore these frames at the bottom of the stack (libc internal functions)
0e40a68ba421 Rename sample config and add more examples
Vincent Tondellier <tonton+hg@team1664.org>
parents: 79
diff changeset
    33
          "__libc_start_main",
0e40a68ba421 Rename sample config and add more examples
Vincent Tondellier <tonton+hg@team1664.org>
parents: 79
diff changeset
    34
          "_init",
0e40a68ba421 Rename sample config and add more examples
Vincent Tondellier <tonton+hg@team1664.org>
parents: 79
diff changeset
    35
        ],
0e40a68ba421 Rename sample config and add more examples
Vincent Tondellier <tonton+hg@team1664.org>
parents: 79
diff changeset
    36
        BottomFrame => [
0e40a68ba421 Rename sample config and add more examples
Vincent Tondellier <tonton+hg@team1664.org>
parents: 79
diff changeset
    37
          # Don't use frames past this one in the signature
0e40a68ba421 Rename sample config and add more examples
Vincent Tondellier <tonton+hg@team1664.org>
parents: 79
diff changeset
    38
          #"main",
0e40a68ba421 Rename sample config and add more examples
Vincent Tondellier <tonton+hg@team1664.org>
parents: 79
diff changeset
    39
        ],
0e40a68ba421 Rename sample config and add more examples
Vincent Tondellier <tonton+hg@team1664.org>
parents: 79
diff changeset
    40
        RemoveNamespace => [
0e40a68ba421 Rename sample config and add more examples
Vincent Tondellier <tonton+hg@team1664.org>
parents: 79
diff changeset
    41
          # Clean function names by removing the namespace
0e40a68ba421 Rename sample config and add more examples
Vincent Tondellier <tonton+hg@team1664.org>
parents: 79
diff changeset
    42
          #"some_ns::",
0e40a68ba421 Rename sample config and add more examples
Vincent Tondellier <tonton+hg@team1664.org>
parents: 79
diff changeset
    43
        ],
19
300b902b5461 Reorganize config
Vincent Tondellier <tonton+hg@team1664.org>
parents: 17
diff changeset
    44
  },
78
0ebef32c34af Refactor everything
Vincent Tondellier <tonton+hg@team1664.org>
parents: 67
diff changeset
    45
  Storage => [
0ebef32c34af Refactor everything
Vincent Tondellier <tonton+hg@team1664.org>
parents: 67
diff changeset
    46
    { Type => "Sql",  db => { Pg => "postgresql:///crashtest" } },
0ebef32c34af Refactor everything
Vincent Tondellier <tonton+hg@team1664.org>
parents: 67
diff changeset
    47
    { Type => "File", DataDir => 'data/crashs/' },
0ebef32c34af Refactor everything
Vincent Tondellier <tonton+hg@team1664.org>
parents: 67
diff changeset
    48
  ],
67
9e95be0b1b8c Make the index columns configurable
Vincent Tondellier <tonton@team1664.org>
parents: 57
diff changeset
    49
  WebInterface => {
78
0ebef32c34af Refactor everything
Vincent Tondellier <tonton+hg@team1664.org>
parents: 67
diff changeset
    50
    ScmLinks => {
0ebef32c34af Refactor everything
Vincent Tondellier <tonton+hg@team1664.org>
parents: 67
diff changeset
    51
      "svn:svn.example.org/testproject" => 'https://redmine.example.org/projects/testproject/repository/entry/<%= $scmpath =%>?rev=<%= $rev =%>#L<%= $line =%>',
0ebef32c34af Refactor everything
Vincent Tondellier <tonton+hg@team1664.org>
parents: 67
diff changeset
    52
    },
0ebef32c34af Refactor everything
Vincent Tondellier <tonton+hg@team1664.org>
parents: 67
diff changeset
    53
    ExtraColumns => {
0ebef32c34af Refactor everything
Vincent Tondellier <tonton+hg@team1664.org>
parents: 67
diff changeset
    54
      Index => [
99
0e40a68ba421 Rename sample config and add more examples
Vincent Tondellier <tonton+hg@team1664.org>
parents: 79
diff changeset
    55
        { id => 'os'        , db_column => "crash_user.os", name => 'Operating System' },
0e40a68ba421 Rename sample config and add more examples
Vincent Tondellier <tonton+hg@team1664.org>
parents: 79
diff changeset
    56
        { id => 'cpu_count' , db_column => "crash_user.cpu_count", name => "CPU count" },
0e40a68ba421 Rename sample config and add more examples
Vincent Tondellier <tonton+hg@team1664.org>
parents: 79
diff changeset
    57
        { id => 'program'   , db_column => "main_module", name => 'Program' },
0e40a68ba421 Rename sample config and add more examples
Vincent Tondellier <tonton+hg@team1664.org>
parents: 79
diff changeset
    58
      ],
0e40a68ba421 Rename sample config and add more examples
Vincent Tondellier <tonton+hg@team1664.org>
parents: 79
diff changeset
    59
      GroupIndex => [
0e40a68ba421 Rename sample config and add more examples
Vincent Tondellier <tonton+hg@team1664.org>
parents: 79
diff changeset
    60
        { id => 'program'   , db_column => "string_agg(distinct(main_module), ', ')", name => 'Programs' },
0e40a68ba421 Rename sample config and add more examples
Vincent Tondellier <tonton+hg@team1664.org>
parents: 79
diff changeset
    61
      ],
0e40a68ba421 Rename sample config and add more examples
Vincent Tondellier <tonton+hg@team1664.org>
parents: 79
diff changeset
    62
      Search => [
0e40a68ba421 Rename sample config and add more examples
Vincent Tondellier <tonton+hg@team1664.org>
parents: 79
diff changeset
    63
        { id => 'cpu_count' , db_column => "crash_user.cpu_count", name => "CPU count" },
0e40a68ba421 Rename sample config and add more examples
Vincent Tondellier <tonton+hg@team1664.org>
parents: 79
diff changeset
    64
        { id => 'program'   , db_column => "main_module", name => 'Program' },
78
0ebef32c34af Refactor everything
Vincent Tondellier <tonton+hg@team1664.org>
parents: 67
diff changeset
    65
      ],
0ebef32c34af Refactor everything
Vincent Tondellier <tonton+hg@team1664.org>
parents: 67
diff changeset
    66
    },
3
2ff78fe4abda Create helper to shorten signatures and create links to the repository
Vincent Tondellier <tonton+hg@team1664.org>
parents: 0
diff changeset
    67
  },
0
5b78b8c79d9c Initial commit
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
    68
};
67
9e95be0b1b8c Make the index columns configurable
Vincent Tondellier <tonton@team1664.org>
parents: 57
diff changeset
    69
# vim:ft=perl: