發表文章

目前顯示的是 10月, 2019的文章

在Gerrit新開一個issue

研究很久,才對repo比較孰悉一點 這次是遇到前一個issue merged上去後要新開一個issue 簡單說就是commit可能之前會累積很多個,要清除掉只剩一個最新的就好 基本上就適用repo sync把commit拉到最新 再把新的source code放上去就好 但因為要新開issue,commit需要包含的格式如下     AVer firmware updater for CAM520, CAM540, VB342 and CAM340     This CL adds AVer firmware updater to handle CAM520, CAM540, VB342     and CAM340 camera firmware update     Refer to CL: 1385964: aver-updater: Add aver-updater firmware ebuild     BUG=None     TEST=we test our device in developer mode on ASUS chromebox.     Main test is hotplug CAM520 CAM540, VB342 or CAM340 to chromebox,     and the firmware automatically download from google local mirror.     Then device update the firmware by aver-updater successfully.     Change-Id: I820920e538b14198e51aafec30b9b312e1da7a31 Cahnge-Id拿掉,才會產生新的issue,不然會繼續上傳到舊的issue去

Google Chrome OS ebuild上傳流程

圖片
還是經常會被ebuild上傳流程給打敗 這邊跟firmware-updater的方式不一樣 每次做都會遇到不一樣的狀況 最好的方式就是做個詳細的解說 當你使用git add或是其他git指令加完要上傳或是修改的檔案後輸入git commit -a 要先去參考一下git log 上面除了敘述之外還有三個欄位TEST、BUG、Change-Id。如果今天是想創建一個新的ebuild project,那就不用Change-Id。TEST與BUG其實填入你做了甚麼測試跟修了甚麼BUG。如果今天只是要修改ebuild後上傳,那就加入之前的Change-Id,Gerrit系統自然會分辨你要上傳的project是哪個。 然後改完之後使用"repo upload ."上傳,這代表上傳這個目錄下的東西就好。 如果通過應該會顯示下面的字眼 如果有問題會出現下面的狀況 老實說這每次都覺得很難搞 第一段是說要增加一個-r1的symlink或是改ebuild版號 第二段是要解決空白鍵的問題 但一直改不過 最後發現下"repo upload . --no-verify" 在這個選項再選NO,就可以建立出新的project Run hook scripts from https://chromium.googlesource.com/chromiumos/manifest.git (yes/always/NO)? NO 一點小經驗: 這次要改ebuild裡面的東西,似乎就需要進版號 說實在頗麻煩,我到現在還是不太懂他的規則 這邊可能還需要去詳讀一下ebuild的上傳規則 目前又遇到問題是新修改的ebuild要上傳被說有空白鍵要消除 如果使用"repo upload . --no-verify" 會跳出Squash the commits with the same Change-Id or ensure Change-Ids are unique for each commit) 這表示有不同的Change-Id在不同的branch裡面 結果再使用git re...