Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable FAIL_ON_UNKNOWN_PROPERTIES for forward compatibility #599

Merged
merged 5 commits into from
Sep 11, 2019
Merged

Disable FAIL_ON_UNKNOWN_PROPERTIES for forward compatibility #599

merged 5 commits into from
Sep 11, 2019

Conversation

narenmanoharan
Copy link
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

CLAassistant commented Sep 11, 2019

CLA assistant check
All committers have signed the CLA.

@codecov-io
Copy link

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
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
Contributor

Merged. Thanks for contributing!

@pjakubczyk
Copy link
Contributor

Release :) ?

@bootstraponline
Copy link
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
Contributor

yep I see FTL is passing. Thanks !

@pjakubczyk
Copy link
Contributor

ping :)

@bootstraponline
Copy link
Contributor

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

@pocmo
Copy link

pocmo commented Sep 13, 2019

It just started happening again for us? 🤔

@bootstraponline
Copy link
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