<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>442821</bug_id>
          
          <creation_ts>2021-09-23 03:38:37 +0000</creation_ts>
          <short_desc>TimelineModelTest::testWeatherElements fails at 23:00</short_desc>
          <delta_ts>2021-09-23 15:58:12 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Applications</classification>
          <product>KDE Itinerary</product>
          <component>general</component>
          <version>unspecified</version>
          <rep_platform>Other</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Bernhard M. Wiedemann">kdebugsbmw</reporter>
          <assigned_to name="Volker Krause">vkrause</assigned_to>
          <cc>fabian</cc>
          
          <cf_commitlink>https://invent.kde.org/pim/itinerary/commit/4f0258094fd16fae1c7c680b5a48d4bb2696733a</cf_commitlink>
          <cf_versionfixedin>21.08.2</cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2063262</commentid>
    <comment_count>0</comment_count>
    <who name="Bernhard M. Wiedemann">kdebugsbmw</who>
    <bug_when>2021-09-23 03:38:37 +0000</bug_when>
    <thetext>SUMMARY timelinemodeltest.cpp fails reproducibly 4% of the time


STEPS TO REPRODUCE
1. run itinerary-21.08.1 tests with the system clock set between 23:00 and 23:59 UTC (in case it matters: we use TZ=UTC)
   on openSUSE, you can do that with osc co openSUSE:Factory/itinerary &amp;&amp; cd $_ &amp;&amp; osc build --vm-type=kvm --noservice --clean --build-opt=--vm-custom-opt=&quot;-rtc base=2021-11-01T23:29:00&quot; standard


OBSERVED RESULT
QDEBUG : TimelineModelTest::testWeatherElements() weather recomputation done^M
FAIL!  : TimelineModelTest::testWeatherElements() Compared values are not the sa
me^M
   Actual   (fc.dateTime().date()): 2021/09/05^M
   Expected (QDate::currentDate()): 2021/09/04^M
   Loc: [/home/abuild/rpmbuild/BUILD/itinerary-21.08.1/autotests/timelinemodelte
st.cpp(284)]^M
QWARN  : TimelineModelTest::testMultiTraveller() Comparators already registered
for type KItinerary::BusTrip^M


EXPECTED RESULT
tests should not fail like this

SOFTWARE/OS VERSIONS

Linux/KDE Plasma: openSUSE Tumbleweed 20210916
KDE Plasma Version: ?
KDE Frameworks Version: 5.86
Qt Version: 5.15.2

ADDITIONAL INFORMATION

This bug was found while working on reproducible builds for openSUSE.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2063455</commentid>
    <comment_count>1</comment_count>
    <who name="Volker Krause">vkrause</who>
    <bug_when>2021-09-23 15:58:12 +0000</bug_when>
    <thetext>Git commit 4f0258094fd16fae1c7c680b5a48d4bb2696733a by Volker Krause.
Committed on 23/09/2021 at 15:55.
Pushed by vkrause into branch &apos;release/21.08&apos;.

Fix timeline model test breaking during the last hour of the day

If there&apos;s only &lt;1h left, we wont get a weather element for the ongoing day
anymore, so start the test from the next day in that case.
FIXED-IN: 21.08.2

M  +21   -15   autotests/timelinemodeltest.cpp

https://invent.kde.org/pim/itinerary/commit/4f0258094fd16fae1c7c680b5a48d4bb2696733a</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>