Add CI job to watch upstream feature flgas folder changes
related issue #798 (closed)
- only run on main-jh branch and JH_SYNC_TOKEN triggered, to make sure run this job only when sync code
- this job allow failure
- get
upstream_latest_commit
fromconfig/feature_flags
- get
JH_know_latest_commit
from CI cache - check
JH_know_latest_commit
equalupstream_latest_commit
or not - if equal, do nothing
- if not equal
- send slack message to notify dev
- create jihulab issue for tracking
- save
upstream_latest_commit
asJH_know_latest_commit
in CI cache
处理 feature flags 变化流程(考虑放到文档中)
- 极狐 CI job "watch-upstream-feature-flags" 会监控 upstream 中 config/feature_flags 文件夹的变化
- 发现 upstream 有变化,会在 gitlab project 中创建 issue,方便 dev 记录排查信息,该 issue 会带上 featureflag::changed label
- 另外会发送 slack 消息到 #feature-flag-watcher channel 中,通知 dev
- dev 收到消息后开始排查相关变化,必要时需要通知 SRE 同事
- dev 或者 SRE 处理完成后,需要关闭第 2 步创建的 issue,同时在 #feature-flag-watcher channel 中对消息回复"完成"表情,表明已经处理完成
由 毛超 编辑于