Closed saw-jan closed 2 years ago
The failure seems to be the expiration date (expiration date is used old than the current date)
Fix has been merged!
FAIL tests/providerTest.js (230.021 s)
provider testing
oc10 as provider
✓ verifies the contract with finished interactions (93124 ms)
✕ verifies the contract pending on ocis (69626 ms)
✓ verifies the contract pending on oC10 (2938 ms)
✓ verifies the contract pending on oC10 & ocis (63303 ms)
ocis as provider
○ skipped verifies the contract with finished interactions
○ skipped verifies the contract pending on oC10
○ skipped verifies the contract pending on ocis
○ skipped verifies the contract pending on oC10 & ocis
● provider testing › oc10 as provider › verifies the contract pending on ocis
assert.fail(received, expected)
Message:
assert.fail()
391 | console.log('Result:', output)
392 | }).catch(function () {
> 393 | chai.assert.fail()
| ^
394 | })
395 | }, TEST_TIMEOUT)
396 |
at tests/providerTest.js:393:21
failing in recent nightly too https://drone.owncloud.com/owncloud/owncloud-sdk/3865/9/11
Failed on today's nightly build. https://drone.owncloud.com/owncloud/owncloud-sdk/3869/9/11
Failed on today's nightly build. https://drone.owncloud.com/owncloud/owncloud-sdk/3869/9/11
Yeah, should have passed. This is so weird. Assuming that the failure is due to the timing of the nightly run, even re-running the nightly build at other time it fails
This issue is a hard failure only on nightly. Does not fail on PRs
. i have checked drone pipeline comparison for normal debug PR and nightly seems same. Very hard to reproduce the nightly failure locally.
Failed on today's nightly build. https://drone.owncloud.com/owncloud/owncloud-sdk/3869/9/11
@saw-jan $.ocs.meta.message.#text -> Expected 'Expiration date is in the past' to match '(OK)?'
todays nightly failure has this error for each failing test. Seems seems like in nightly expiration date is not updated.
The nightly failure was due to the failure in downloading the correct consumer pact file using the tag name. We are currently using DRONE_SOURCE_BRANCH
to create a tag for the pact versions and also to download the correct pact version using this tag. But in cron builds, this env will be undefined
thus causing the failure to download the latest expected pact version using DRONE_SOURCE_BRANCH
as a tag name.
Builds: https://drone.owncloud.com/owncloud/owncloud-sdk/3847/9/11, https://drone.owncloud.com/owncloud/owncloud-sdk/3846/9/11