Skip to content

Disable FAIL_ON_UNKNOWN_PROPERTIES for forward compatibility#599

Merged
bootstraponline merged 5 commits into
Flank:masterfrom
narenmanoharan:add_fail_on_unknown_props_false
Sep 11, 2019
Merged

Disable FAIL_ON_UNKNOWN_PROPERTIES for forward compatibility#599
bootstraponline merged 5 commits into
Flank:masterfrom
narenmanoharan:add_fail_on_unknown_props_false

Conversation

@narenmanoharan
Copy link
Copy Markdown
Contributor

This makes sure that any future additions to the XML by FTL does not break existing builds of flank and is more permissive in structure about deserialization of unknown properties.

@CLAassistant
Copy link
Copy Markdown

CLAassistant commented Sep 11, 2019

CLA assistant check
All committers have signed the CLA.

@codecov-io
Copy link
Copy Markdown

Codecov Report

Merging #599 into master will increase coverage by 0.05%.
The diff coverage is 100%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master     #599      +/-   ##
============================================
+ Coverage      76.7%   76.75%   +0.05%     
  Complexity      610      610              
============================================
  Files            81       81              
  Lines          2262     2263       +1     
  Branches        324      324              
============================================
+ Hits           1735     1737       +2     
  Misses          308      308              
+ Partials        219      218       -1

@bootstraponline
Copy link
Copy Markdown
Contributor

bootstraponline commented Sep 11, 2019

Thanks for the pull request! Please add a JUnit test that verifies no exception is thrown when an unknown XML property is present in the parsed XML.

Something like this, note the addition of random="prop".

 val unknownXml= """
<?xml version='1.0' encoding='UTF-8' ?>
<testsuites>
  <testsuite random="prop" name="EarlGreyExampleSwiftTests" tests="4" failures="1" errors="0" skipped="0" time="51.773" hostname="localhost">
    <testcase name="a()" classname="a" time="1.0" random="prop"/>
  </testsuite>
</testsuites>
        """.trimIndent()

val parsed= parseAllSuitesXml(unknownXml).xmlToString()
       
assertThat(parsed).isEqualTo(unknownXml)

@bootstraponline bootstraponline merged commit 601ae81 into Flank:master Sep 11, 2019
@bootstraponline
Copy link
Copy Markdown
Contributor

Merged. Thanks for contributing!

@pjakubczyk
Copy link
Copy Markdown
Contributor

Release :) ?

@bootstraponline
Copy link
Copy Markdown
Contributor

I'm working on it. The Bitrise GitHub release step is failing.

FTL finished the rollback so you shouldn't be broken anymore.

@pjakubczyk
Copy link
Copy Markdown
Contributor

yep I see FTL is passing. Thanks !

@pjakubczyk
Copy link
Copy Markdown
Contributor

ping :)

@bootstraponline
Copy link
Copy Markdown
Contributor

I haven't forgotten about this. 🙂 It's on my list.

@pocmo
Copy link
Copy Markdown

pocmo commented Sep 13, 2019

It just started happening again for us? 🤔

@bootstraponline
Copy link
Copy Markdown
Contributor

bootstraponline commented Sep 13, 2019

It just started happening again for us?

The Firebase team had a mistake in the rollback. It should be resolved now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants