Bug 209979 - Update test262 to commit 62b8fce38971
Summary: Update test262 to commit 62b8fce38971
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: WebKit Nightly Build
Hardware: All All
: P2 Enhancement
Assignee: Alexey Shvayka
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2020-04-03 11:40 PDT by Alexey Shvayka
Modified: 2020-04-03 23:18 PDT (History)
3 users (show)

See Also:


Attachments
Patch (295.00 KB, patch)
2020-04-03 11:44 PDT, Alexey Shvayka
no flags Details | Formatted Diff | Diff
Patch (289.04 KB, patch)
2020-04-03 22:27 PDT, Alexey Shvayka
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alexey Shvayka 2020-04-03 11:40:19 PDT
Update test262 to commit 62b8fce38971
Comment 1 Alexey Shvayka 2020-04-03 11:44:59 PDT
Created attachment 395399 [details]
Patch
Comment 2 Keith Miller 2020-04-03 11:57:25 PDT
I think you'll need to set the 'allow-tabs' svn property on the lgcl JS files or your patch is going to get rejected by the svn commit hook.
Comment 3 Ross Kirsling 2020-04-03 12:21:11 PDT
(In reply to Keith Miller from comment #2)
> I think you'll need to set the 'allow-tabs' svn property on the lgcl JS
> files or your patch is going to get rejected by the svn commit hook.

We should fix this upstream too. :(
Comment 4 Ross Kirsling 2020-04-03 15:36:34 PDT
Oh oops, I was being silly. Those three files (lgcl-*-whitespace.js) are using tabs intentionally and appear to be marked as "binary" in test262.

So we can either `svn propset` or, say, add JSTests/.gitattributes.
Comment 5 Alexey Shvayka 2020-04-03 21:06:26 PDT
I've checked out using SVN, applied the patch and performed

  $ svn propset "allow-tabs" "1"

on lgcl-*-whitespace.js files, but I am getting

  ERROR: Unexpected diff format when parsing a chunk: ''
  ERROR: Unexpected diff format when parsing a chunk: 'Property changes on: JSTests/test262/test/language/expressions/logical-assignment/lgcl-and-whitespace.js'
  ERROR: Unexpected diff format when parsing a chunk: '___________________________________________________________________'
  ERROR: Unexpected diff format when parsing a chunk: 'Added: allow-tabs'
  ERROR: Unexpected diff format when parsing a chunk: '## -0,0 +1 ##'
  ERROR: Unexpected diff format when parsing a chunk: '\\ No newline at end of property'
  ERROR: JSTests/test262/test/language/expressions/logical-assignment/lgcl-and-whitespace.js:15:  Line contains tab character.  [whitespace/tab] [5]
  ERROR: JSTests/test262/test/language/expressions/logical-assignment/lgcl-and-whitespace.js:55:  Line contains tab character.  [whitespace/tab] [5]
  ERROR: JSTests/test262/test/language/expressions/logical-assignment/lgcl-and-whitespace.js:56:  Line contains tab character.  [whitespace/tab] [5]

during `webkit-patch upload`.

Please see https://bugs.webkit.org/show_bug.cgi?id=186624: seems like we would have to land this manually.
Comment 6 Ross Kirsling 2020-04-03 22:07:55 PDT
Yeah, it's not an ideal situation...

It may be better to add a JSTests/.gitattributes, listing off each problematic file, like this:
https://github.com/WebKit/webkit/blob/master/Source/WTF/icu/unicode/.gitattributes

...that way it can still go through the commit queue.
Comment 7 Keith Miller 2020-04-03 22:25:19 PDT
I brought up the allow-tabs problem awhile ago in webkit-dev but it fizzled out because I couldn't find the commit hook source and I never asked where it was. I restarted the thread so maybe we can improve our situation.
Comment 8 Alexey Shvayka 2020-04-03 22:27:48 PDT
Created attachment 395436 [details]
Patch

Add JSTests/.gitattributes
Comment 9 Alexey Shvayka 2020-04-03 22:28:22 PDT
(In reply to Ross Kirsling from comment #6)
> Yeah, it's not an ideal situation...
> 
> It may be better to add a JSTests/.gitattributes, listing off each
> problematic file, like this:
> https://github.com/WebKit/webkit/blob/master/Source/WTF/icu/unicode/.
> gitattributes
> 
> ...that way it can still go through the commit queue.

Thank you, Ross.
Per your previous comment, I was looking through .gitattributes in /Source, but didn't find anything related to tabs.
Comment 10 Ross Kirsling 2020-04-03 22:34:27 PDT
(In reply to Keith Miller from comment #7)
> I brought up the allow-tabs problem awhile ago in webkit-dev but it fizzled
> out because I couldn't find the commit hook source and I never asked where
> it was. I restarted the thread so maybe we can improve our situation.

Thanks Keith!
Comment 11 EWS 2020-04-03 23:13:33 PDT
Committed r259529: <https://trac.webkit.org/changeset/259529>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 395436 [details].
Comment 12 Radar WebKit Bug Importer 2020-04-03 23:14:23 PDT
<rdar://problem/61290124>