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

Pin jasmine@3.1.0 #392

Merged
merged 1 commit into from
Aug 10, 2018
Merged

Pin jasmine@3.1.0 #392

merged 1 commit into from
Aug 10, 2018

Conversation

erisu
Copy link
Member

@erisu erisu commented Aug 10, 2018

Platforms affected

ios (tests)

What does this PR do?

This PR fixes the recent test failures on master branch.

These tests are failing because of the latest Jasmine@3.2.0 that has been released within the past 2 days. (https://github.com/jasmine/jasmine-npm/releases/tag/v3.2.0)

At the time the original PR was submitted and tested, Jasmine was at version 3.1.0. On this version, all tests were passing. https://travis-ci.org/apache/cordova-ios/builds/412472891

By pinning Jasmine@3.1.0 in package.json, the tests will continue to pass.

What testing has been done on this change?

Checklist

  • Reported an issue in the JIRA database
  • Commit message follows the format: "CB-3232: (android) Fix bug with resolving file paths", where CB-xxxx is the JIRA ID & "android" is the platform affected.
  • Added automated test coverage as appropriate for this change.

@janpio janpio changed the title Pinning Jasmine@3.1.0 for Master Fix Pin jasmine@3.1.0 Aug 10, 2018
@brodycj
Copy link
Contributor

brodycj commented Aug 10, 2018

Nice temporary solution. TBH I would kinda favor updating the test to pass on jasmine@3.2.0.

@codecov-io
Copy link

codecov-io commented Aug 10, 2018

Codecov Report

Merging #392 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #392   +/-   ##
=======================================
  Coverage   73.68%   73.68%           
=======================================
  Files          11       11           
  Lines        1463     1463           
=======================================
  Hits         1078     1078           
  Misses        385      385

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c109ce7...6e3bb64. Read the comment docs.

@erisu
Copy link
Member Author

erisu commented Aug 10, 2018

@brodybits The questions I have:

  • Do we merge this temporary fix so master is green while we can continue to research into Jasmine 3.2.0?
  • Do you have any issues if this was merged in?

The problem could be that these tests have always been broken and with the new Jasmine release, it bubbled up the issue. The last PR does not affect actual code; it only added new tests and updated testing deps (Jasmine, Rewire, and added NYC).

The other possibility is that Jasmine actually introduced a bug and the tests are OK. If the tests are updated to work with the possible new bug, it is likely that the tests will fail again once Jasmine releases a new version.

Either way, I don't deny that we should investigate to find out where the issues originate and correct if it's our tests.

@janpio
Copy link
Member

janpio commented Aug 10, 2018

Priority is always to get master back to green again. In this case the fastest way to achieve this, is to go back to the state before the jasmine release. Pinning the version achieves exactly that.

Tests can (and should!) be updated for the new jasmine release in an additional PR. But that can happen while master is green.

@brodycj
Copy link
Contributor

brodycj commented Aug 10, 2018

As a minor comment I would favor the following approach:

  • specify jasmine@~3.1.0, which would block the jasmine@3.2.0 update in a slightly more general way
  • raise a followup PR, maybe a WIP PR, that bumps to jasmine@^3.2.0 to track that we want to work on this (alternative would be to raise this as an issue)

@erisu
Copy link
Member Author

erisu commented Aug 10, 2018

Ok, I will:

  1. Update package.json with jasmine@~3.1.0 so that patch versions are still acceptable.
  2. Merge PR after Travis CI and AppVeyor re-run.
  3. Create an issue ticket so we can revisit at a later time to investigate and fix tests for jasmine@^3.2.0.

@brodycj
Copy link
Contributor

brodycj commented Aug 10, 2018

🎉

@erisu erisu merged commit e0d3dad into apache:master Aug 10, 2018
erisu added a commit to erisu/cordova-ios that referenced this pull request Jan 16, 2019
@erisu erisu deleted the jasmine-pin-fix branch April 4, 2019 06:13
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.

4 participants