日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當(dāng)前位置: 首頁(yè) > 编程资源 > 编程问答 >内容正文

编程问答

How to check bad fix

發(fā)布時(shí)間:2023/12/1 编程问答 31 豆豆
生活随笔 收集整理的這篇文章主要介紹了 How to check bad fix 小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.

最近做了一個(gè)backport的票,backport就是別人以前修復(fù)了這個(gè)bug,我只需要將fix移植到客戶的系統(tǒng)中。這是一 個(gè)沒有技術(shù)含量的票,遇到簡(jiǎn)單的票,三下五除二就解決了。但是遇到目標(biāo)版本與master差別大時(shí),也許backport后不好用。結(jié)果這次就遇到了,并 且引起UI問題。

我先是查看所有commit的修復(fù),發(fā)現(xiàn)沒有關(guān)于UI的修復(fù)。找了好久也沒有找出原因。后來(lái)我想到部分backport,只backport主要修復(fù),但是這也需要對(duì)修復(fù)很了解才能做到合理取舍,只得放棄。

于是我采用最笨的方法,以文件為單位,單個(gè)測(cè)試。因?yàn)槭荱I問題,單個(gè)功能JSP文件錯(cuò)誤就可能導(dǎo)致問題,我便找到可能的文件,將其還原到被修改前 的狀態(tài),全部復(fù)制到backport后的版本上。這就相當(dāng)于backport,但是唯獨(dú)不backport這個(gè)文件。發(fā)現(xiàn)UI問題不見了!那就確定是這個(gè) 文件引起。然后再找出此次修復(fù)的所有關(guān)于這個(gè)文件的commit,找到diff,每次應(yīng)用一個(gè)commit,當(dāng)應(yīng)用到某個(gè)commit時(shí),問題出現(xiàn)了,說(shuō) 明此次commit的fix導(dǎo)致了這個(gè)問題,然后仔細(xì)分析此次修改,最后找到問題。

========================================================================

Recently I did a ticket about backport. Backport is just copy others fix to fix customer’s issue. This kind of tickets has little tech. If it’s simple, nothing progress. But if it’s not simple, that’s disgusting. But this time, it’s the latter. And it’s an UI issue.

At first, I tried to look through the commits and found there’s no fix about UI. And then I tried to part backport it. But this needs me know the fix well, so that I can part backport it. So I give this solution up.

At last, I use a stupid way, but it does make sence. I focus on each file. Since this is an UI issue, it relates js, css, jsp files. I found the JSP files which might be the reason. I took out one jsp, and find the original status that didn’t apply any fix. And I copied all the content to the backported file, which means I backported all the fix, but only left this JSP as “unfixed”. The result is, the UI issue was gone! That was clear enough. Then I applied the commits of the file one by one, until I can reproduce the issue. Then I located the commit that made bad fix. Then I took care of this fix and found out the cause.

?

我的github: https://github.com/bejondshao

轉(zhuǎn)載于:https://www.cnblogs.com/bejond/p/4307270.html

總結(jié)

以上是生活随笔為你收集整理的How to check bad fix的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內(nèi)容還不錯(cuò),歡迎將生活随笔推薦給好友。