Make WordPress Core

Opened 8 years ago

Closed 7 years ago

Last modified 5 years ago

#45821 closed defect (bug) (fixed)

Date Related Travis Failures

Reported by: desrosj Owned by: SergeyBiryukov
Priority: normal Milestone: 5.3
Component: Build/Test Tools Version:
Severity: minor Keywords:
Cc: Focuses:

Description

On occasion, a Travis build will fail when date related PHPUnit tests do not pass. It happens seemingly at random with a random PHP version.

It appears to be an issue the job in Travis not having the expected timezone.

Attachments (1)

log.txt​ (140.4 KB ) - added by desrosj 8 years ago.
Latest failure log on PHP 7.3

Download all attachments as: .zip

Change History (12)

@desrosj
8 years ago

Latest failure log on PHP 7.3

This ticket was mentioned in ​Slack in #core by desrosj. ​View the logs.


8 years ago

This ticket was mentioned in ​Slack in #core by desrosj. ​View the logs.


8 years ago

This ticket was mentioned in ​Slack in #core by jeremyfelt. ​View the logs.


8 years ago

This ticket was mentioned in ​Slack in #core by sergey. ​View the logs.


7 years ago

#6 @SergeyBiryukov
7 years ago

  • Milestone Awaiting Review → 5.3

#7 @SergeyBiryukov
7 years ago

  • Owner set to SergeyBiryukov
  • Resolution → fixed
  • Status new → closed

In 45857:

Date/Time: Fix race conditions in current_time() tests.

  • Restore default timezone before performing assertions to avoid affecting other tests in case of failure.
  • Use delta comparison for timestamps to avoid race conditions.

Props SergeyBiryukov, desrosj.
Fixes #45821.

This ticket was mentioned in ​Slack in #core-datetime by sergey. ​View the logs.


7 years ago

This ticket was mentioned in ​Slack in #core by sergey. ​View the logs.


5 years ago

#10 @SergeyBiryukov
5 years ago

In 52586:

Date/Time: Fix race conditions in current_time() tests.

  • Restore default timezone before performing assertions to avoid affecting other tests in case of failure.
  • Use delta comparison for timestamps to avoid race conditions.

Props SergeyBiryukov, desrosj.
Merges [45857] to the 5.2 branch.
Fixes #45821.

#11 @SergeyBiryukov
5 years ago

In 52587:

Date/Time: Fix race conditions in current_time() tests.

  • Restore default timezone before performing assertions to avoid affecting other tests in case of failure.
  • Use delta comparison for timestamps to avoid race conditions.

Props SergeyBiryukov, desrosj.
Merges [45857] to the 5.1 branch.
Fixes #45821.

Note: See TracTickets for help on using tickets.