extras/crash_test.conf
author Vincent Tondellier <tonton+hg@team1664.org>
Sun, 21 Feb 2016 22:33:09 +0100
changeset 112 148a7bfbf021
parent 111 f827f3c50dcf
child 116 39449f7dab99
permissions -rw-r--r--
Add changes for version 0.2.0
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',
111
f827f3c50dcf Add examples (config, systemd and uploader)
Vincent Tondellier <tonton+hg@team1664.org>
parents: 107
diff changeset
    11
        SymbolsPath => 'data/breakpad-symbols/*',
79
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
        ],
107
6f411821b12b Fix syntax in the example config
Vincent Tondellier <tonton+hg@team1664.org>
parents: 99
diff changeset
    44
      },
6f411821b12b Fix syntax in the example config
Vincent Tondellier <tonton+hg@team1664.org>
parents: 99
diff changeset
    45
    },
19
300b902b5461 Reorganize config
Vincent Tondellier <tonton+hg@team1664.org>
parents: 17
diff changeset
    46
  },
78
0ebef32c34af Refactor everything
Vincent Tondellier <tonton+hg@team1664.org>
parents: 67
diff changeset
    47
  Storage => [
0ebef32c34af Refactor everything
Vincent Tondellier <tonton+hg@team1664.org>
parents: 67
diff changeset
    48
    { Type => "Sql",  db => { Pg => "postgresql:///crashtest" } },
0ebef32c34af Refactor everything
Vincent Tondellier <tonton+hg@team1664.org>
parents: 67
diff changeset
    49
    { Type => "File", DataDir => 'data/crashs/' },
0ebef32c34af Refactor everything
Vincent Tondellier <tonton+hg@team1664.org>
parents: 67
diff changeset
    50
  ],
67
9e95be0b1b8c Make the index columns configurable
Vincent Tondellier <tonton@team1664.org>
parents: 57
diff changeset
    51
  WebInterface => {
78
0ebef32c34af Refactor everything
Vincent Tondellier <tonton+hg@team1664.org>
parents: 67
diff changeset
    52
    ScmLinks => {
0ebef32c34af Refactor everything
Vincent Tondellier <tonton+hg@team1664.org>
parents: 67
diff changeset
    53
      "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
    54
    },
0ebef32c34af Refactor everything
Vincent Tondellier <tonton+hg@team1664.org>
parents: 67
diff changeset
    55
    ExtraColumns => {
0ebef32c34af Refactor everything
Vincent Tondellier <tonton+hg@team1664.org>
parents: 67
diff changeset
    56
      Index => [
99
0e40a68ba421 Rename sample config and add more examples
Vincent Tondellier <tonton+hg@team1664.org>
parents: 79
diff changeset
    57
        { 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
    58
        { 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
    59
        { 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
    60
      ],
0e40a68ba421 Rename sample config and add more examples
Vincent Tondellier <tonton+hg@team1664.org>
parents: 79
diff changeset
    61
      GroupIndex => [
0e40a68ba421 Rename sample config and add more examples
Vincent Tondellier <tonton+hg@team1664.org>
parents: 79
diff changeset
    62
        { 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
    63
      ],
0e40a68ba421 Rename sample config and add more examples
Vincent Tondellier <tonton+hg@team1664.org>
parents: 79
diff changeset
    64
      Search => [
0e40a68ba421 Rename sample config and add more examples
Vincent Tondellier <tonton+hg@team1664.org>
parents: 79
diff changeset
    65
        { 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
    66
        { id => 'program'   , db_column => "main_module", name => 'Program' },
78
0ebef32c34af Refactor everything
Vincent Tondellier <tonton+hg@team1664.org>
parents: 67
diff changeset
    67
      ],
0ebef32c34af Refactor everything
Vincent Tondellier <tonton+hg@team1664.org>
parents: 67
diff changeset
    68
    },
3
2ff78fe4abda Create helper to shorten signatures and create links to the repository
Vincent Tondellier <tonton+hg@team1664.org>
parents: 0
diff changeset
    69
  },
0
5b78b8c79d9c Initial commit
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
    70
};
67
9e95be0b1b8c Make the index columns configurable
Vincent Tondellier <tonton@team1664.org>
parents: 57
diff changeset
    71
# vim:ft=perl: