|
|
DescriptionAdd a .gitattributes file to force LF line-endings in .pins files.
This change forces the pins files to use LF line-endings and adds a check to
detect CRLF line-endings that outputs a more helpful error message.
BUG=729553
Review-Url: https://codereview.chromium.org/2941543002
Cr-Commit-Position: refs/heads/master@{#485165}
Committed: https://chromium.googlesource.com/chromium/src/+/89d553d1c6f6d386c52fc3ade38eb4fe2508ab7f
Patch Set 1 #Patch Set 2 : Add CRLF check for the pins files. #Patch Set 3 : Move .gitattributes. #
Messages
Total messages: 30 (17 generated)
The CQ bit was checked by martijn@martijnc.be to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
Description was changed from ========== Add .gitattributes file to force LF line-endings in .pins files. BUG=729553,732746 ========== to ========== Add a .gitattributes file to force LF line-endings in .pins files. This change forces the pins files to use LF line-endings and adds a check to detect CRLF line-endings that outputs a more helpful error message. BUG=729553,732746 ==========
martijn@martijnc.be changed reviewers: + bratell@opera.com, rsleevi@chromium.org
The CQ bit was checked by martijn@martijnc.be to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Description was changed from ========== Add a .gitattributes file to force LF line-endings in .pins files. This change forces the pins files to use LF line-endings and adds a check to detect CRLF line-endings that outputs a more helpful error message. BUG=729553,732746 ========== to ========== Add a .gitattributes file to force LF line-endings in .pins files. This change forces the pins files to use LF line-endings and adds a check to detect CRLF line-endings that outputs a more helpful error message. BUG=729553 ==========
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: cast_shell_linux on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/cast_shell_linu...) linux_chromium_asan_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...) linux_chromium_chromeos_ozone_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...) linux_chromium_compile_dbg_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...) linux_chromium_headless_rel on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...) linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...) linux_chromium_tsan_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...)
rsleevi: can you review the net changes? bratell: FYI The .gitattributes change should ensure the .pins files in net/http/ are never converted to CRLF line-endings. I used the same syntax as the .gitattributes file in src/ for .py files, according to the git documentation this should have the desired effect [1]. This CL also adds a check for CRLF line-endings and fails the generator with a more informative error message when they are found. [1] https://git-scm.com/docs/gitattributes#gitattributes-Settostringvaluelf
rsleevi@chromium.org changed reviewers: + maruel@chromium.org
I don't feel qualified to opine on whether this is right thing to do, but my feeling is that it is not. I'm going to tag in Marc-Antoine here, who would know more about the infrastructure and what 'guarantees' (or not) are made. My understanding is that we only officially support heremetic depot-tools git.
On 2017/06/14 10:13:35, Ryan Sleevi wrote: > I don't feel qualified to opine on whether this is right thing to do, but my > feeling is that it is not. I'm going to tag in Marc-Antoine here, who would know > more about the infrastructure and what 'guarantees' (or not) are made. > > My understanding is that we only officially support heremetic depot-tools git. I've heard that statement before but I think it's a bit of wishful thinking. We (Opera) ran for a long time with other gits because the bundled git was too old and slow just as an example, and it's hard to guarantee that paths stay consistent at a machine which may have multiple git installations. So if it's trivial to make the code robust, then it would be sad to not do that. IMHO.
On 2017/06/14 11:27:05, Daniel Bratell wrote: > On 2017/06/14 10:13:35, Ryan Sleevi wrote: > > I don't feel qualified to opine on whether this is right thing to do, but my > > feeling is that it is not. I'm going to tag in Marc-Antoine here, who would > know > > more about the infrastructure and what 'guarantees' (or not) are made. > > > > My understanding is that we only officially support heremetic depot-tools git. > > I've heard that statement before but I think it's a bit of wishful thinking. We > (Opera) ran for a long time with other gits because the bundled git was too old > and slow just as an example, and it's hard to guarantee that paths stay > consistent at a machine which may have multiple git installations. > > So if it's trivial to make the code robust, then it would be sad to not do that. > IMHO. https://chromium.googlesource.com/chromium/src/+/master/.gitattributes would be the right place.
On 2017/06/14 11:27:05, Daniel Bratell wrote: > On 2017/06/14 10:13:35, Ryan Sleevi wrote: > > I don't feel qualified to opine on whether this is right thing to do, but my > > feeling is that it is not. I'm going to tag in Marc-Antoine here, who would > know > > more about the infrastructure and what 'guarantees' (or not) are made. > > > > My understanding is that we only officially support heremetic depot-tools git. > > I've heard that statement before but I think it's a bit of wishful thinking. We > (Opera) ran for a long time with other gits because the bundled git was too old > and slow just as an example, and it's hard to guarantee that paths stay > consistent at a machine which may have multiple git installations. > > So if it's trivial to make the code robust, then it would be sad to not do that. > IMHO. https://chromium.googlesource.com/chromium/src/+/master/.gitattributes would be the right place.
Patchset #3 (id:40001) has been deleted
Patchset #3 (id:60001) has been deleted
On 2017/06/14 at 17:49:34, maruel wrote: > https://chromium.googlesource.com/chromium/src/+/master/.gitattributes would be the right place. Moved the rule to src/.gitattributes in PS#3.
On 2017/06/14 18:55:04, martijnc wrote: > On 2017/06/14 at 17:49:34, maruel wrote: > > https://chromium.googlesource.com/chromium/src/+/master/.gitattributes would > be the right place. > > Moved the rule to src/.gitattributes in PS#3. Looks good to me (non-owner). Need rsleevi and/or maruel to appprove?
On 2017/06/28 16:06:48, Daniel Bratell wrote: > Looks good to me (non-owner). Need rsleevi and/or maruel to appprove? Entirely deferring to Marc-Antoine here, as the impact/expectations of infrastructure are his ken.
maruel: can you take a look or comment on whether this change is acceptable? Thanks!
lgtm
lgtm
The CQ bit was checked by martijn@martijnc.be
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
CQ is committing da patch. Bot data: {"patchset_id": 80001, "attempt_start_ts": 1499632647942940, "parent_rev": "c8ddaa9787cdff766f819c402d2dcd6de796fa90", "commit_rev": "89d553d1c6f6d386c52fc3ade38eb4fe2508ab7f"}
Message was sent while issue was closed.
Description was changed from ========== Add a .gitattributes file to force LF line-endings in .pins files. This change forces the pins files to use LF line-endings and adds a check to detect CRLF line-endings that outputs a more helpful error message. BUG=729553 ========== to ========== Add a .gitattributes file to force LF line-endings in .pins files. This change forces the pins files to use LF line-endings and adds a check to detect CRLF line-endings that outputs a more helpful error message. BUG=729553 Review-Url: https://codereview.chromium.org/2941543002 Cr-Commit-Position: refs/heads/master@{#485165} Committed: https://chromium.googlesource.com/chromium/src/+/89d553d1c6f6d386c52fc3ade38e... ==========
Message was sent while issue was closed.
Committed patchset #3 (id:80001) as https://chromium.googlesource.com/chromium/src/+/89d553d1c6f6d386c52fc3ade38e... |