Project

General

Profile

Actions

Bug #25432

open

Sporadic errors on UpdateHttpDatasetTest for 404 behavior

Added by François ARMAND about 2 months ago.

Status:
New
Priority:
N/A
Assignee:
-
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
0
Name check:
To do
Fix check:
To do
Regression:
No

Description

Sometimes, more often on CI than on developper machines, we get the UpdateHttpDatasetTest in error.
I looks like it's always the some error (same missing (NodeId(node2),1) pair).
I works in branch 8.1 reliabelly, so it might be linked to the change to Scala3 migration and bringing CoreNodeFact (#25015)

Tests run: 53, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 12.633 sec <<< FAILURE!
The behavior on 404  should::have a working 'default value property' option(com.normation.plugins.datasources.UpdateHttpDatasetTest)  Time elapsed: 0.005 sec  <<< ERROR!
Exception in thread "zio-fiber-4462" org.specs2.matcher.MatchFailureException: Map(NodeId(node2) -> 2, NodeId(node1) -> 1, NodeId(root) -> 1) doesn't have the pair '(NodeId(node2),1)'
    at org.specs2.matcher.MatchResultStackTrace.setStacktrace(Expectations.scala:57)
    at org.specs2.matcher.MatchResultStackTrace.setStacktrace$(Expectations.scala:55)
    at org.specs2.mutable.Specification.setStacktrace(Specification.scala:15)
    at org.specs2.matcher.ExpectationsCreation.checkFailure(Expectations.scala:37)
    at org.specs2.matcher.ExpectationsCreation.checkFailure$(Expectations.scala:36)
    at org.specs2.mutable.Specification.checkFailure(Specification.scala:15)
    at org.specs2.matcher.MustThrownExpectationsCreation$$anon$4.check(MustExpectations.scala:68)
    at org.specs2.matcher.Expectable.applyMatcher(Expectable.scala:51)
    at org.specs2.matcher.MustThrownExpectationsCreation$$anon$4.applyMatcher(MustExpectations.scala:67)
    at org.specs2.matcher.MustExpectable.must(MustExpectable.scala:16)
    at com.normation.plugins.datasources.UpdateHttpDatasetTest.$anonfun$new$320(UpdateHttpDatasetTest.scala:1231)
    at org.specs2.matcher.AndMatch.m2$lzycompute(MatchResult.scala:224)
    at org.specs2.matcher.AndMatch.m2(MatchResult.scala:224)
    at org.specs2.matcher.AndMatch.evaluate(MatchResult.scala:229)
    at org.specs2.matcher.MatchResultLogicalCombinators$MatchResultCombinator.$anonfun$and$2(MatchResultCombinators.scala:49)
    at scala.util.Either.fold(Either.scala:189)
    at org.specs2.matcher.MatchResultLogicalCombinators$MatchResultCombinator.and(MatchResultCombinators.scala:49)
    at com.normation.plugins.datasources.UpdateHttpDatasetTest.$anonfun$new$316(UpdateHttpDatasetTest.scala:1231)
    at zio.ZIO.$anonfun$map$2(ZIO.scala:960)
    at com.normation.plugins.datasources.UpdateHttpDatasetTest.<local UpdateHttpDatasetTest>.test404prop(UpdateHttpDatasetTest.scala:1229)
    at com.normation.zio.ZioRuntime.unsafeRun(ZioCommons.scala:445)
    Suppressed: java.lang.Exception: Map(NodeId(node2) -> 2, NodeId(node1) -> 1, NodeId(root) -> 1) doesn't have the pair '(NodeId(node2),1)'
        at org.specs2.matcher.MatchResultStackTrace.setStacktrace(Expectations.scala:57)
        at org.specs2.matcher.MatchResultStackTrace.setStacktrace$(Expectations.scala:55)
        at org.specs2.mutable.Specification.setStacktrace(Specification.scala:15)
        at org.specs2.matcher.ExpectationsCreation.checkFailure(Expectations.scala:37)
        at org.specs2.matcher.ExpectationsCreation.checkFailure$(Expectations.scala:36)
        at org.specs2.mutable.Specification.checkFailure(Specification.scala:15)
        at org.specs2.matcher.MustThrownExpectationsCreation$$anon$4.check(MustExpectations.scala:68)
        at org.specs2.matcher.Expectable.applyMatcher(Expectable.scala:51)
        at org.specs2.matcher.MustThrownExpectationsCreation$$anon$4.applyMatcher(MustExpectations.scala:67)
        at org.specs2.matcher.MustExpectable.must(MustExpectable.scala:16)
        at com.normation.plugins.datasources.UpdateHttpDatasetTest.$anonfun$new$320(UpdateHttpDatasetTest.scala:1231)
        at org.specs2.matcher.AndMatch.m2$lzycompute(MatchResult.scala:224)
        at org.specs2.matcher.AndMatch.m2(MatchResult.scala:224)
        at org.specs2.matcher.AndMatch.evaluate(MatchResult.scala:229)
        at org.specs2.matcher.MatchResultLogicalCombinators$MatchResultCombinator.$anonfun$and$2(MatchResultCombinators.scala:49)
        at scala.util.Either.fold(Either.scala:189)
        at org.specs2.matcher.MatchResultLogicalCombinators$MatchResultCombinator.and(MatchResultCombinators.scala:49)
        at com.normation.plugins.datasources.UpdateHttpDatasetTest.$anonfun$new$316(UpdateHttpDatasetTest.scala:1231)
        at zio.ZIO.$anonfun$map$2(ZIO.scala:960)
Caused by: org.specs2.matcher.MatchFailureException: Map(NodeId(node2) -> 2, NodeId(node1) -> 1, NodeId(root) -> 1) doesn't have the pair '(NodeId(node2),1)'
    at com.normation.plugins.datasources.UpdateHttpDatasetTest.$anonfun$new$320(UpdateHttpDatasetTest.scala:1231)
    at com.normation.plugins.datasources.UpdateHttpDatasetTest.$anonfun$new$316(UpdateHttpDatasetTest.scala:1231)
    at zio.ZIO.$anonfun$map$2(ZIO.scala:960)
    at zio.internal.FiberRuntime.runLoop(FiberRuntime.scala:911)
    at zio.internal.FiberRuntime.evaluateEffect(FiberRuntime.scala:385)
    at zio.internal.FiberRuntime.evaluateMessageWhileSuspended(FiberRuntime.scala:508)
    at zio.internal.FiberRuntime.drainQueueOnCurrentThread(FiberRuntime.scala:223)
    at zio.internal.FiberRuntime.run(FiberRuntime.scala:141)
    at zio.internal.ZScheduler$$anon$4.run(ZScheduler.scala:478)
Caused by: java.lang.Exception: Map(NodeId(node2) -> 2, NodeId(node1) -> 1, NodeId(root) -> 1) doesn't have the pair '(NodeId(node2),1)'
    at org.specs2.matcher.MatchResultStackTrace.setStacktrace(Expectations.scala:57)
    at org.specs2.matcher.MatchResultStackTrace.setStacktrace$(Expectations.scala:55)
    at org.specs2.mutable.Specification.setStacktrace(Specification.scala:15)
    at org.specs2.matcher.ExpectationsCreation.checkFailure(Expectations.scala:37)
    at org.specs2.matcher.ExpectationsCreation.checkFailure$(Expectations.scala:36)
    at org.specs2.mutable.Specification.checkFailure(Specification.scala:15)
    at org.specs2.matcher.MustThrownExpectationsCreation$$anon$4.check(MustExpectations.scala:68)
    at org.specs2.matcher.Expectable.applyMatcher(Expectable.scala:51)
    at org.specs2.matcher.MustThrownExpectationsCreation$$anon$4.applyMatcher(MustExpectations.scala:67)
    at org.specs2.matcher.MustExpectable.must(MustExpectable.scala:16)
    at com.normation.plugins.datasources.UpdateHttpDatasetTest.$anonfun$new$320(UpdateHttpDatasetTest.scala:1231)
    at org.specs2.matcher.AndMatch.m2$lzycompute(MatchResult.scala:224)
    at org.specs2.matcher.AndMatch.m2(MatchResult.scala:224)
    at org.specs2.matcher.AndMatch.evaluate(MatchResult.scala:229)
    at org.specs2.matcher.MatchResultLogicalCombinators$MatchResultCombinator.$anonfun$and$2(MatchResultCombinators.scala:49)
    at scala.util.Either.fold(Either.scala:189)
    at org.specs2.matcher.MatchResultLogicalCombinators$MatchResultCombinator.and(MatchResultCombinators.scala:49)
    ... 8 more

Results :

Tests in error: 
  The behavior on 404  should::have a working 'default value property' option(com.normation.plugins.datasources.UpdateHttpDatasetTest): Map(NodeId(node2) -> 2, NodeId(node1) -> 1, NodeId(root) -> 1) doesn't have the pair '(NodeId(node2),1)'

Related issues 2 (0 open2 closed)

Related to Rudder - Architecture #25015: Plugins need to be ported, tooReleasedClark ANDRIANASOLOActions
Related to Datasources - Bug #25085: Datasources tests fail on 404ReleasedFrançois ARMANDActions
Actions #1

Updated by François ARMAND about 2 months ago

Actions #2

Updated by François ARMAND about 2 months ago

  • Related to Bug #25085: Datasources tests fail on 404 added
Actions

Also available in: Atom PDF