-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathrepo-mirror-ci.conf
145 lines (131 loc) · 4.43 KB
/
repo-mirror-ci.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
# common variables for all the scripts (bash & python)
# vim:se ft=bash :
# state directory for cronjob runs
CRONJOB_STATE_DIR=~
# admin mail
# directory with repo-mirror-ci scripts
SCRIPT_DIR=/opt/repo-mirror-ci
# official Gentoo resources to fetch
REPOSITORIES_XML='https://api.gentoo.org/overlays/repositories.xml'
# local store for repositories.xml
REPOSITORIES_XML_CACHE=~/data/repositories.xml
# PORTAGE_CONFIGROOT to use for regular repos
CONFIG_ROOT=~/data
# PORTAGE_CONFIGROOT to use with mirrors (for CI)
CONFIG_ROOT_MIRROR=~/data-mirror
# PORTAGE_CONFIGROOT to use for syncing
CONFIG_ROOT_SYNC=~/data-sync
# PORTAGE_CONFIGROOT to use for gentoo-ci
# (it's copied from CONFIG_ROOT_MIRROR, with other repos stripped)
CONFIG_ROOT_GENTOO_CI=~/data-gentoo-ci
# initial storage for repositories (synced by PM)
SYNC_DIR=~/sync
# intermediate storage for repositories with metadata
REPOS_DIR=~/repos
# storage for repository mirrors
MIRROR_DIR=~/mirror
# repos.conf file path, relative to CONFIG_ROOT*
REPOS_CONF=etc/portage/repos.conf
# max no of concurrent 'pmaint sync' processes
MAX_SYNC_JOBS=32
# max no of concurrent 'pmaint regen' processes
MAX_REGEN_JOBS=32
# no of threads to use for 'pmaint regen' (passed as -t)
REGEN_THREADS=32
# timeout for CI runs, in form acepted by timeout(1)
CI_TIMEOUT=45m
# timeout for cache regen (it can hang)
PMAINT_TIMEOUT=10m
# repositories to skip when updating
# progress - sf.net limits requests making it impossible to clone
# ros-overlay - killing the regen through repo size
# raw - hangs pmaint regen
BANNED_REPOS='progress ros-overlay raw'
# repositories that must succeed
CRITICAL_REPOS='gentoo'
# repositories that must have valid OpenPGP signatures
SIGNED_REPOS='gentoo'
# username for github bot login
GITHUB_USERNAME=gentoo-repo-qa-bot
# file with github oauth token
GITHUB_TOKEN_FILE=~/.github-token
# github organization holding all the mirrors
GITHUB_ORG=gentoo-mirror
# github repository for gentoo.git mirror (PRs)
GITHUB_REPO=gentoo/gentoo
# report/repos.git checkout
REPORT_REPOS_GIT=~/report/repos
# report/gentoo-ci.git checkout
GENTOO_CI_GIT=~/report/gentoo-ci
# pkgcheck-result-parser.git checkout
PKGCHECK_RESULT_PARSER_GIT=${SCRIPT_DIR}/pkgcheck2html
# URI prefix for gentoo-ci reports
GENTOO_CI_URI_PREFIX=https://qa-reports.gentoo.org/output/gentoo-ci
# E-mail address to mail gentoo-ci results to
# URI to gitweb query for commit range, will have old..new appended
GENTOO_CI_GITWEB_URI="https://gitweb.gentoo.org/repo/gentoo.git/log/?qt=range&q="
# URI to gitweb query for single commit, will have id appended
GENTOO_CI_GITWEB_COMMIT_URI="https://gitweb.gentoo.org/repo/gentoo.git/commit/?id="
# pull request storage root
PULL_REQUEST_DIR=~/pull
# pull request state db (pickle)
PULL_REQUEST_DB=${PULL_REQUEST_DIR}/state.pickle
# pull request source repository
PULL_REQUEST_REPO=https://github.com/gentoo/gentoo
# borked package rescan limit
PULL_REQUEST_BORKED_LIMIT=1000
# options used for all-repo CI scans
PKGCHECK_OPTIONS="-p stable,dev --checks=+PerlCheck"
# options used for pull request scans
PKGCHECK_PR_OPTIONS="${PKGCHECK_OPTIONS} --cache=-git"
# pkgcheck options (for bisecting and comparing)
PKGCHECK_BISECT_OPTIONS="-s pkg,ver
-p stable,dev"
# irc server
IRC_TO="ircs://croaker:$(cat ~/.croaker-password 2>/dev/null || :)@irc.libera.chat/#gentoo-dev"
# additional OpenPGP keys to include in keyring
GPG_EXTRA_KEYS='EF9538C9E8E64311A52CDEDFA13D0EF1914E7A72'
export CRONJOB_ADMIN_MAIL
export VIRTUAL_ENV
export SCRIPT_DIR
export REPOSITORIES_XML
export REPOSITORIES_XML_CACHE
export CONFIG_ROOT
export CONFIG_ROOT_MIRROR
export CONFIG_ROOT_SYNC
export CONFIG_ROOT_GENTOO_CI
export SYNC_DIR
export REPOS_DIR
export MIRROR_DIR
export REPOS_CONF
export MAX_SYNC_JOBS
export MAX_REGEN_JOBS
export MAX_PCHECK_JOBS
export REGEN_THREADS
export CI_TIMEOUT
export PMAINT_TIMEOUT
export BANNED_REPOS
export CRITICAL_REPOS
export SIGNED_REPOS
export GITHUB_USERNAME
export GITHUB_TOKEN_FILE
export GITHUB_ORG
export GITHUB_REPO
export REPORT_REPOS_GIT
export GENTOO_CI_GIT
export PKGCHECK_RESULT_PARSER_GIT
export GENTOO_CI_URI_PREFIX
export GENTOO_CI_MAIL
export GENTOO_CI_GITWEB_URI
export GENTOO_CI_GITWEB_COMMIT_URI
export PULL_REQUEST_DIR
export PULL_REQUEST_DB
export PULL_REQUEST_REPO
export PULL_REQUEST_BORKED_LIMIT
export PKGCHECK_OPTIONS
export PKGCHECK_PR_OPTIONS
export PKGCHECK_BISECT_OPTIONS
export IRC_TO
export GPG_EXTRA_KEYS