Skip to content

Commit a6dd072

Browse files
committed
Release 13.10.2 - See CHANGELOG.md
1 parent ee529e9 commit a6dd072

File tree

6 files changed

+92
-15
lines changed

6 files changed

+92
-15
lines changed

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
## 13.10.2 2021-03-27 <dave at tiredofit dot ca>
2+
3+
### Added
4+
- Add more EE Cronjobs
5+
6+
### Changed
7+
- Fix Mailroom from not starting and failing incoming mail
8+
9+
110
## 13.10.0 2021-03-23 <dave at tiredofit dot ca>
211

312
### Added

install/assets/defaults/20-gitlab

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -287,16 +287,17 @@ IMAP_USER=${IMAP_USER:-}
287287
IMAP_PASS=${IMAP_PASS:-}
288288
IMAP_SSL=${IMAP_SSL:-true}
289289
IMAP_STARTTLS=${IMAP_STARTTLS:-false}
290-
IMAP_MAILBOX=${IMAP_MAILBOX:-inbox}
290+
IMAP_MAILBOX=${IMAP_MAILBOX:-Inbox}
291291
IMAP_TIMEOUT=${IMAP_TIMEOUT:-60}
292292

293-
if [[ -n ${IMAP_USER} ]]; then
293+
if [ -n ${IMAP_USER} ]; then
294294
IMAP_ENABLED=${IMAP_ENABLED:-true}
295+
GITLAB_INCOMING_EMAIL_ENABLED=${GITLAB_INCOMING_EMAIL_ENABLED:-true}
295296
fi
297+
296298
IMAP_ENABLED=${IMAP_ENABLED:-false}
297299
GITLAB_INCOMING_EMAIL_ENABLED=${GITLAB_INCOMING_EMAIL_ENABLED:-${IMAP_ENABLED}}
298-
GITLAB_INCOMING_EMAIL_ADDRESS=${GITLAB_INCOMING_EMAIL_ADDRESS:-${IMAP_USER}}
299-
GITLAB_INCOMING_EMAIL_ADDRESS=${GITLAB_INCOMING_EMAIL_ADDRESS:[email protected]}
300+
GITLAB_INCOMING_EMAIL_ADDRESS=${GITLAB_INCOMING_EMAIL_ADDRESS:-"[email protected]"}
300301

301302
## LDAP
302303
LDAP_ENABLED=${LDAP_ENABLED:-false}

install/assets/functions/20-gitlab

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,6 +384,9 @@ gitlab_configure_mailroom() {
384384
rm -rf /etc/services.available/60-mailroom/run
385385
mv /etc/services.available/60-mailroom/run.tmp /etc/services.available/60-mailroom/run
386386
chmod +x /etc/services.available/60-mailroom/run
387+
# In case it fails
388+
#echo "* * * * * 'cd /home/git/gitlab; sudo -HEu buncle exec rake gitlab:incoming_email:check" >> /assets/cron/crontab.txt
389+
387390
}
388391

389392
gitlab_configure_ldap() {
@@ -1654,7 +1657,7 @@ check_service_initialized 50-workhorse
16541657
liftoff
16551658

16561659
print_info "Starting Gitlab Pages ${GITLAB_PAGES_VERSION}"
1657-
exec s6-setuidgid git /usr/local/bin/gitlab-pages -pages-domain ${GITLAB_PAGES_DOMAIN} -pages-root ${GITLAB_PAGES_DIR} -listen-proxy :8090 \\
1660+
exec sudo -HEu git /usr/local/bin/gitlab-pages -pages-domain ${GITLAB_PAGES_DOMAIN} -pages-root ${GITLAB_PAGES_DIR} -listen-proxy :8090 \\
16581661
EOF
16591662

16601663
if [[ -n ${GITLAB_PAGES_EXTERNAL_HTTP} ]]; then

install/assets/gitlab/config/gitlabhq/gitlab.yml

Lines changed: 70 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,8 @@ production: &base
159159
# The mailbox where incoming mail will end up. Usually "inbox".
160160
mailbox: "{{IMAP_MAILBOX}}"
161161

162+
log_path: "log/mail_room_json.log"
163+
162164
# The IDLE command timeout.
163165
idle_timeout: {{IMAP_TIMEOUT}}
164166

@@ -290,22 +292,38 @@ production: &base
290292
# Periodically executed jobs, to self-heal GitLab, do external synchronizations, etc.
291293
# Please read here for more information: https://github.com/ondrejbartas/sidekiq-cron#adding-cron-job
292294
cron_jobs:
293-
# Flag stuck CI jobs as failed
295+
# Flag stuck CI jobs as failed
294296
stuck_ci_jobs_worker:
295297
cron: "0 * * * *"
296298
# Execute scheduled triggers
297299
pipeline_schedule_worker:
298-
cron: "{{GITLAB_PIPELINE_SCHEDULE_WORKER_CRON}}"
300+
cron: "3-59/10 * * * *"
299301
# Remove expired build artifacts
300302
expire_build_artifacts_worker:
301-
cron: "50 * * * *"
303+
cron: "*/7 * * * *"
304+
# Remove expired pipeline artifacts
305+
ci_pipelines_expire_artifacts_worker:
306+
cron: "*/23 * * * *"
307+
# Remove files from object storage
308+
ci_schedule_delete_objects_worker:
309+
cron: "*/16 * * * *"
310+
# Stop expired environments
311+
environments_auto_stop_cron_worker:
312+
cron: "24 * * * *"
302313
# Periodically run 'git fsck' on all repositories. If started more than
303314
# once per hour you will have concurrent 'git fsck' jobs.
304315
repository_check_worker:
305316
cron: "20 * * * *"
317+
# Archive live traces which have not been archived yet
318+
ci_archive_traces_cron_worker:
319+
cron: "17 * * * *"
306320
# Send admin emails once a week
307321
admin_email_worker:
308322
cron: "0 0 * * 0"
323+
# Send emails for personal tokens which are about to expire
324+
personal_access_tokens_expiring_worker:
325+
cron: "0 1 * * *"
326+
309327
# Remove outdated repository archives
310328
repository_archive_cache_worker:
311329
cron: "0 * * * *"
@@ -314,8 +332,20 @@ production: &base
314332
pages_domain_verification_cron_worker:
315333
cron: "*/15 * * * *"
316334

317-
##
318-
# GitLab EE only jobs:
335+
# Periodically migrate diffs from the database to external storage
336+
schedule_migrate_external_diffs_worker:
337+
cron: "15 * * * *"
338+
339+
# Update CI Platform Metrics daily
340+
ci_platform_metrics_update_cron_worker:
341+
cron: "47 9 * * *"
342+
343+
# GitLab EE only jobs. These jobs are automatically enabled for an EE
344+
# installation, and ignored for a CE installation.
345+
ee_cron_jobs:
346+
# Schedule snapshots for all devops adoption segments
347+
analytics_devops_adoption_create_all_snapshots_worker:
348+
cron: 0 4 * * *
319349

320350
# Snapshot active users statistics
321351
historical_data_worker:
@@ -327,6 +357,11 @@ production: &base
327357
ldap_sync_worker:
328358
cron: "30 1 * * *"
329359

360+
# Periodically refresh LDAP groups membership.
361+
# NOTE: This will only take effect if LDAP is enabled
362+
ldap_group_sync_worker:
363+
cron: "0 * * * *"
364+
330365
# GitLab Geo metrics update worker
331366
# NOTE: This will only take effect if Geo is enabled
332367
geo_metrics_update_worker:
@@ -335,18 +370,47 @@ production: &base
335370
# GitLab Geo prune event log worker
336371
# NOTE: This will only take effect if Geo is enabled (primary node only)
337372
geo_prune_event_log_worker:
338-
cron: "0 */6 * * *"
373+
cron: "*/5 * * * *"
339374

340375
# GitLab Geo repository sync worker
341376
# NOTE: This will only take effect if Geo is enabled (secondary nodes only)
342377
geo_repository_sync_worker:
343378
cron: "*/1 * * * *"
344379

380+
# GitLab Geo registry backfill worker
381+
# NOTE: This will only take effect if Geo is enabled (secondary nodes only)
382+
geo_secondary_registry_consistency_worker:
383+
cron: "* * * * *"
384+
345385
# GitLab Geo file download dispatch worker
346386
# NOTE: This will only take effect if Geo is enabled (secondary nodes only)
347387
geo_file_download_dispatch_worker:
348388
cron: "*/1 * * * *"
349389

390+
# GitLab Geo registry sync worker (for backfilling)
391+
# NOTE: This will only take effect if Geo is enabled (secondary nodes only)
392+
geo_registry_sync_worker:
393+
cron: "*/1 * * * *"
394+
395+
# Export pseudonymized data in CSV format for analysis
396+
pseudonymizer_worker:
397+
cron: "0 * * * *"
398+
399+
# Elasticsearch bulk updater for incremental updates.
400+
# NOTE: This will only take effect if elasticsearch is enabled.
401+
elastic_index_bulk_cron_worker:
402+
cron: "*/1 * * * *"
403+
404+
# Elasticsearch bulk updater for initial updates.
405+
# NOTE: This will only take effect if elasticsearch is enabled.
406+
elastic_index_initial_bulk_cron_worker:
407+
cron: "*/1 * * * *"
408+
409+
# Elasticsearch reindexing worker
410+
# NOTE: This will only take effect if elasticsearch is enabled.
411+
elastic_index_initial_bulk_cron_worker:
412+
cron: "*/10 * * * *"
413+
350414
registry:
351415
enabled: {{GITLAB_REGISTRY_ENABLED}}
352416
host: {{GITLAB_REGISTRY_HOST}}

install/etc/cont-init.d/20-gitlab

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ case "$MODE" in
1717
"START")
1818
migrate_database
1919
### Enable / Disable Services
20-
if var_true $GITLAB_INCOMING_MAIL_ENABLED ; then
21-
print_notice "Enabling Mailroom"
22-
else
20+
if var_false $IMAP_ENABLED ; then
2321
service_stop 60-mailroom
22+
else
23+
print_notice "Enabling Mailroom"
2424
fi
2525

2626
if var_true $GITLAB_PAGES_ENABLED ; then

install/etc/services.available/60-mailroom/run

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ print_info "Starting Mailroom"
1212
HOME=${GITLAB_HOME}
1313

1414
cd "${GITLAB_INSTALL_DIR}"
15-
silent sudo -HEu git bundle exec mail_room ${GITLAB_INSTALL_DIR}/config/mail_room.yml
15+
silent sudo -HEu git bundle exec mail_room -c ${GITLAB_INSTALL_DIR}/config/mail_room.yml

0 commit comments

Comments
 (0)