WordPress.org

Make WordPress Core

Opened 17 months ago

Closed 9 months ago

Last modified 5 months ago

#45821 closed defect (bug) (fixed)

Date Related Travis Failures

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

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 17 months ago.
Latest failure log on PHP 7.3

Download all attachments as: .zip

Change History (9)

@desrosj
17 months ago

Latest failure log on PHP 7.3

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


17 months ago

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


14 months ago

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


13 months ago

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


12 months ago

#6 @SergeyBiryukov
9 months ago

  • Milestone changed from Awaiting Review to 5.3

#7 @SergeyBiryukov
9 months ago

  • Owner set to SergeyBiryukov
  • Resolution set to fixed
  • Status changed from new to 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.


5 months ago

Note: See TracTickets for help on using tickets.