WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
176541
[Win] tests/security/contentSecurityPolicy/report-only.php is flaky.
https://bugs.webkit.org/show_bug.cgi?id=176541
Summary
[Win] tests/security/contentSecurityPolicy/report-only.php is flaky.
Per Arne Vollan
Reported
2017-09-07 10:36:55 PDT
From the httpd error log: [Thu Sep 07 01:50:11.131370 2017] [:error] [pid 4576:tid 824] [client 127.0.0.1:61925] PHP Warning: rename(C:\\Users\\buildbot\\AppData\\Local\\Temp/-security-contentSecurityPolicy-report-only.php.csp-report.txt.tmp,C:\\Users\\buildbot\\AppData\\Local\\Temp/-security-contentSecurityPolicy-report-only.php.csp-report.txt): The process cannot access the file because it is being used by another process. (code: 32) in C:\\cygwin\\home\\buildbot\\slave\\win-release-tests\\build\\LayoutTests\\http\\tests\\security\\contentSecurityPolicy\\resources\\save-report.php on line 24, referer:
http://127.0.0.1:8000/security/contentSecurityPolicy/report-only.php
Attachments
Patch
(1.70 KB, patch)
2017-09-07 12:20 PDT
,
Per Arne Vollan
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Per Arne Vollan
Comment 1
2017-09-07 12:20:08 PDT
Created
attachment 320154
[details]
Patch
Per Arne Vollan
Comment 2
2017-09-07 12:20:56 PDT
This is not the most elegant solution, maybe there are better approaches?
Brent Fulgham
Comment 3
2017-09-07 12:27:42 PDT
Comment on
attachment 320154
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=320154&action=review
This isn't very elegant, but it's worth a try to get the Windows tests to work consistently.
> LayoutTests/http/tests/security/contentSecurityPolicy/resources/save-report.php:27 > + sleep(1);
Is there a way we could do the loop for Windows only? We don't seem to need it on other platforms.
Per Arne Vollan
Comment 4
2017-09-07 12:47:33 PDT
(In reply to Brent Fulgham from
comment #3
)
> Comment on
attachment 320154
[details]
> Patch > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=320154&action=review
> > This isn't very elegant, but it's worth a try to get the Windows tests to > work consistently. > > > LayoutTests/http/tests/security/contentSecurityPolicy/resources/save-report.php:27 > > + sleep(1); > > Is there a way we could do the loop for Windows only? We don't seem to need > it on other platforms.
I think we possibly can add a platform check? Thanks for reviewing!
WebKit Commit Bot
Comment 5
2017-09-07 13:13:00 PDT
Comment on
attachment 320154
[details]
Patch Clearing flags on attachment: 320154 Committed
r221752
: <
http://trac.webkit.org/changeset/221752
>
WebKit Commit Bot
Comment 6
2017-09-07 13:13:02 PDT
All reviewed patches have been landed. Closing bug.
Radar WebKit Bug Importer
Comment 7
2017-09-27 13:02:44 PDT
<
rdar://problem/34694536
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug