extras/crash_test.conf
author Vincent Tondellier <tonton+hg@team1664.org>
Mon, 17 Jul 2023 22:22:33 +0200
changeset 131 bb5fad5d66b8
parent 120 1a0fa98037fa
permissions -rw-r--r--
Allow atom and html format for compat with Mojolicious >= 9.11
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
    },
116
39449f7dab99 Adding bug links (column and search), enabled by default
Vincent Tondellier <tonton+hg@team1664.org>
parents: 111
diff changeset
    55
    BugTrackerLinks => {
39449f7dab99 Adding bug links (column and search), enabled by default
Vincent Tondellier <tonton+hg@team1664.org>
parents: 111
diff changeset
    56
      MyRedmine => {
120
1a0fa98037fa Add Bug status table in the detailed report.
Vincent Tondellier <tonton+hg@team1664.org>
parents: 116
diff changeset
    57
        Type => 'Redmine',
1a0fa98037fa Add Bug status table in the detailed report.
Vincent Tondellier <tonton+hg@team1664.org>
parents: 116
diff changeset
    58
        API => { URL => 'https://redmine.example.org/' },
116
39449f7dab99 Adding bug links (column and search), enabled by default
Vincent Tondellier <tonton+hg@team1664.org>
parents: 111
diff changeset
    59
        url_pattern => 'http://redmine.example.org/issues/<%= $bug_key =%>',
39449f7dab99 Adding bug links (column and search), enabled by default
Vincent Tondellier <tonton+hg@team1664.org>
parents: 111
diff changeset
    60
      },
120
1a0fa98037fa Add Bug status table in the detailed report.
Vincent Tondellier <tonton+hg@team1664.org>
parents: 116
diff changeset
    61
      MyBugzilla => {
1a0fa98037fa Add Bug status table in the detailed report.
Vincent Tondellier <tonton+hg@team1664.org>
parents: 116
diff changeset
    62
        Type => 'Bugzilla',
1a0fa98037fa Add Bug status table in the detailed report.
Vincent Tondellier <tonton+hg@team1664.org>
parents: 116
diff changeset
    63
        API => { URL => 'https://bugzilla.example.org/' },
1a0fa98037fa Add Bug status table in the detailed report.
Vincent Tondellier <tonton+hg@team1664.org>
parents: 116
diff changeset
    64
        url_pattern => 'https://bugzilla.example.org/show_bug.cgi?id=<%= $bug_key =%>',
1a0fa98037fa Add Bug status table in the detailed report.
Vincent Tondellier <tonton+hg@team1664.org>
parents: 116
diff changeset
    65
      },
116
39449f7dab99 Adding bug links (column and search), enabled by default
Vincent Tondellier <tonton+hg@team1664.org>
parents: 111
diff changeset
    66
    },
78
0ebef32c34af Refactor everything
Vincent Tondellier <tonton+hg@team1664.org>
parents: 67
diff changeset
    67
    ExtraColumns => {
0ebef32c34af Refactor everything
Vincent Tondellier <tonton+hg@team1664.org>
parents: 67
diff changeset
    68
      Index => [
99
0e40a68ba421 Rename sample config and add more examples
Vincent Tondellier <tonton+hg@team1664.org>
parents: 79
diff changeset
    69
        { 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
    70
        { 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
    71
        { 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
    72
      ],
0e40a68ba421 Rename sample config and add more examples
Vincent Tondellier <tonton+hg@team1664.org>
parents: 79
diff changeset
    73
      GroupIndex => [
0e40a68ba421 Rename sample config and add more examples
Vincent Tondellier <tonton+hg@team1664.org>
parents: 79
diff changeset
    74
        { 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
    75
      ],
0e40a68ba421 Rename sample config and add more examples
Vincent Tondellier <tonton+hg@team1664.org>
parents: 79
diff changeset
    76
      Search => [
0e40a68ba421 Rename sample config and add more examples
Vincent Tondellier <tonton+hg@team1664.org>
parents: 79
diff changeset
    77
        { 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
    78
        { id => 'program'   , db_column => "main_module", name => 'Program' },
78
0ebef32c34af Refactor everything
Vincent Tondellier <tonton+hg@team1664.org>
parents: 67
diff changeset
    79
      ],
0ebef32c34af Refactor everything
Vincent Tondellier <tonton+hg@team1664.org>
parents: 67
diff changeset
    80
    },
3
2ff78fe4abda Create helper to shorten signatures and create links to the repository
Vincent Tondellier <tonton+hg@team1664.org>
parents: 0
diff changeset
    81
  },
0
5b78b8c79d9c Initial commit
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
    82
};
67
9e95be0b1b8c Make the index columns configurable
Vincent Tondellier <tonton@team1664.org>
parents: 57
diff changeset
    83
# vim:ft=perl: