Skip to content

Update mailroom to v0.0.10

Stan Hu requested to merge sh-update-mailroom-0.0.10 into master

What does this MR do?

This version bumps the version of Net::IMAP to fix a deadlock issue and changes timestamps to use ISO 8601 format.

Related issues

  1. gitlab-org/charts/gitlab#2576 (closed)
  2. https://github.com/ruby/net-imap/issues/14
  3. https://gitlab.com/gitlab-com/gl-infra/infrastructure/-/issues/12869

Checklist

See Definition of done.

For anything in this list which will not be completed, please provide a reason in the MR discussion

Required

  • Merge Request Title, and Description are up to date, accurate, and descriptive
  • MR targeting the appropriate branch
  • MR has a green pipeline on GitLab.com

Tests

  • Check version of Net::IMAP
irb(main):001:0> require 'net/imap'
=> true
irb(main):002:0> Net::IMAP::VERSION # Embedded Ruby version
=> "2.1.2"
irb(main):001:0> require 'mail_room'
=> true
irb(main):002:0> Net::IMAP::VERSION
=> "0.2.1"
  • Check logs
$ kubectl logs -f gitlab-mailroom-598876675b-q79jm
+ /scripts/set-config /etc /etc
Begin parsing .erb files from /etc
+ exec /bin/sh -c '/usr/bin/mail_room -c /var/opt/gitlab/mail_room.yml --log-exit-as json'
[2021-03-17 23:20:11] INFO  WEBrick 1.7.0
[2021-03-17 23:20:11] INFO  ruby 2.7.2 (2020-10-01) [x86_64-linux]
{"severity":"INFO","time":"2021-03-17T23:20:11.435+00:00","context":{"email":"example@gmail.com","name":"inbox"},"action":"Setting up watcher"}
[2021-03-17 23:20:11] INFO  WEBrick::HTTPServer#start: pid=7 port=8080
{"severity":"INFO","time":"2021-03-17T23:20:11.436+00:00","context":{"email":"example@gmail.com","name":"inbox"},"action":"Starting TLS session"}
{"severity":"INFO","time":"2021-03-17T23:20:11.436+00:00","context":{"email":"example@gmail.com","name":"inbox"},"action":"Logging into mailbox"}
{"severity":"INFO","time":"2021-03-17T23:20:11.847+00:00","context":{"email":"example@gmail.com","name":"inbox"},"action":"Setting mailbox"}
{"severity":"INFO","time":"2021-03-17T23:20:12.027+00:00","context":{"email":"example@gmail.com","name":"inbox"},"action":"Processing started"}

Expected (please provide an explanation if not completing)

  • Test plan indicating conditions for success has been posted and passes
  • Documentation created/updated
  • Integration tests added to GitLab QA
  • The impact any change in container size has should be evaluated
Edited by Stan Hu

Merge request reports

Loading