Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
bundle-update.pdf
Search
vividmuimui
October 08, 2019
Programming
130
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
bundle-update.pdf
vividmuimui
October 08, 2019
More Decks by vividmuimui
See All by vividmuimui
あるチームでの技術選定で考えてること(外部向けに修正版)
vividmuimui
0
14
開発組織まわりで最近考えているあれこれ
vividmuimui
0
26
Dependabot vs BundleUpdate+LockDiff
vividmuimui
0
92
あなたの知らないRuboCopの設定
vividmuimui
0
250
最近(2019/02/03)の #Ruby , #Rails , #Bundler 事情
vividmuimui
0
170
Jasperはいいぞ!
vividmuimui
0
54
Danger CI
vividmuimui
0
110
tigとかaliasなし生活を送ってみて改めてgitを覚えてる話
vividmuimui
0
130
lock_diff の紹介
vividmuimui
0
100
Other Decks in Programming
See All in Programming
気づいたらRubyで100作品 ー クリエイティブコーディングが生活の一部になるまで / 100 Ruby Sketches Later: How Creative Coding Became Part of My Life
chobishiba
3
610
TypeScript+Orvalで実現する型安全かつ堅牢でスケーラブルなマルチチャネル通知基盤 / TSKaigi Night talks ~after conference~
d0riven
0
360
Go1.27で導入されるジェネリクスメソッドでできること
mackee
0
190
Oxlintのカスタムルールの現況
syumai
6
1.2k
Honoでのサプライチェーン侵害対策 〜 3つのライブラリに学ぶ
yusukebe
7
1.5k
キャリア迷子上等 ─ "ない道"は自分で作ればいい
16bitidol
3
2.3k
エージェンティックRAGにAWSで入門しよう!
har1101
9
1.8k
TAKTでAI駆動開発の品質を設計する
j5ik2o
7
1.5k
The ROI of Quarkus for Spring Boot Applications
hollycummins
0
140
Creating Composable Callables in Contemporary C++
rollbear
0
170
代数的データ型って何が嬉しいの? #frontend_phpcon_do
kajitack
8
3.8k
Contextとはなにか
chiroruxx
1
380
Featured
See All Featured
Lightning talk: Run Django tests with GitHub Actions
sabderemane
0
200
Visual Storytelling: How to be a Superhuman Communicator
reverentgeek
2
570
The Organizational Zoo: Understanding Human Behavior Agility Through Metaphoric Constructive Conversations (based on the works of Arthur Shelley, Ph.D)
kimpetersen
PRO
0
370
Design in an AI World
tapps
1
250
A Guide to Academic Writing Using Generative AI - A Workshop
ks91
PRO
1
340
Taking LLMs out of the black box: A practical guide to human-in-the-loop distillation
inesmontani
PRO
3
2.3k
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
34
2.8k
SEO Brein meetup: CTRL+C is not how to scale international SEO
lindahogenes
1
2.7k
The Anti-SEO Checklist Checklist. Pubcon Cyber Week
ryanjones
0
170
How to train your dragon (web standard)
notwaldorf
97
6.7k
Documentation Writing (for coders)
carmenintech
77
5.4k
DevOps and Value Stream Thinking: Enabling flow, efficiency and business value
helenjbeal
1
250
Transcript
bundle-update bundle-update 2019/09/10 LT 資料 @vividmuimui 1
定期 bundle update 定期 bundle update tachikoma circleci-bundle-update-pr Dependabot Renovate
https://rubygems.org/gems/tachikoma https://github.com/masutaka/circleci-bundle-update-pr https://dependabot.com https://renovatebot.com 2
Dependabot や Renovate が使える環境なら基本的にもうそれで良さそ う Dependabot は GitHub では private
リポも無料で使えるようにな ったし tachikoma, circleci-bundle-update-pr は、とても便利だけど Changelog へのリンクがなくて⼤変 3
tachikoma, circleci-bundle-update-pr tachikoma, circleci-bundle-update-pr Changelog へのリンクがなくて⼤変 Changelog へのリンクがなくて⼤変 こう思ったことないでしょうか? こう思ったことないでしょうか?
4
そこで lock_diff そこで lock_diff 5
GitHub GitHub vividmuimui/lock_diff vividmuimui/lock_diff https://rubygems.org/gems/lock_diff https://rubygems.org/gems/lock_diff 6
lock_diff lock_diff PR のFiles changed にあるGem le.lock の変更の差分を⾒て、 CHANGELOG 系ファイルへのリンクをPR
にコメントするgem tachikoma や circleci-bundle-update-pr などが作ったPR を対象にして実⾏ される想定 https://github.com/vividmuimui/lock_di _sample/pull/9#issuecomment- 315140796
7
lock_diff lock_diff changelog といっても、リポジトリによって様々な場所に書かれてる CHANGELOG.md RELESE_NOTE.txt history.md GitHub の機能の release
etc lock_di はそれらをよしなに探すようになってる コード: vividmuimui/lock_di の changelog_url_ nder.rb 8
実⾏の仕⽅ 実⾏の仕⽅ 実⾏に必要なのは 3 つ リポジトリ名 PR 番号 ( 省略できる)
基本的には特定のPR に対して実⾏するのでPR 番号が必要 でも、最新の bundle update の PR を特定して実⾏する⽅法もある ので、省略できる tachikoma, circleci-bundle-update-pr はPR 作るときのブラン チ名が特徴的なので、それで特定している ( ブランチ名が変わると ❌) $ lock_diff \ -r "vividmuimui/lock_diff_sample" \ -n 9 \ --post-comment=false
# 最新 PR 特定 実行 場合( `_for_tachikoma` 最 $ lock_diff_for_tachikoma
\ -r "vividmuimui/lock_diff_sample" \ --post-comment=false 9
実⾏の仕⽅ 実⾏の仕⽅ circleci で circleci-bundle-update-pr でセットで動かす⽤の コンテナが⽤意 されてる circleci-bundle-update-pr-with-lock-di 10
ぜひ使ってみてください! ぜひ使ってみてください! Dependabot で daily でアップデート、 で weekly で⼀括アップデート、 という感じで併⽤するのも案外良いですよ。
参考: Dependabot vs BundleUpdate+LockDi https://vividmuimui.github.io/slides/dependabot_vs_lockdi /slides/ 11
おわりに おわりに ずっと前に書いて、その時のニーズをある程度実装できたので、全然メ ンテしてない ( コードも汚い) もっと便利にできたらいいなーとは思ってます( 思ってる) https://github.com/vividmuimui/lock_di /issues
12