Skip to content
This repository has been archived by the owner on Feb 8, 2018. It is now read-only.

Fix build breakage introduced in npm syncing #4173

Merged
merged 2 commits into from
Nov 4, 2016
Merged

Conversation

chadwhitacre
Copy link
Contributor

@chadwhitacre chadwhitacre commented Nov 4, 2016

Should address at least some of #4172 (comment).

Did a new version of marky-markdown introduce this change? I don't know.
@chadwhitacre
Copy link
Contributor Author

chadwhitacre commented Nov 4, 2016

I don't like that our tests could silently pass if one of our dependencies goes missing at Travis, but I don't know of a good way to address that easily.

@chadwhitacre
Copy link
Contributor Author

Ready for review and merge, @nobodxbodon @kaguillera.

@chadwhitacre chadwhitacre changed the title Skip npm sync tests if deps are missing Fix build breakage introduced in npm syncing Nov 4, 2016
@nobodxbodon
Copy link
Contributor

LGTM. I wonder how review process works? The committer waits for at least one contributor giving green light?

@chadwhitacre
Copy link
Contributor Author

@nobodxbodon Yeah, if it looks good to you then you can go ahead and merge! :-)

@nobodxbodon nobodxbodon merged commit 2ca43b5 into master Nov 4, 2016
@nobodxbodon
Copy link
Contributor

Sorry about the premature merging. I just realized that I overlooked the python parts. As I'm not that familiar with Travis, @kaguillera please review again.
@whit537 how could Travis miss any of our dependencies? Does that mean our code base replies on some thirty-party library that's not recognized by Travis?

@chadwhitacre
Copy link
Contributor Author

how could Travis miss any of our dependencies? Does that mean our code base replies on some thirty-party library that's not recognized by Travis?

We are installing the necessary dependencies at Travis. My concern was that if that dependency installation started failing for some reason, we wouldn't notice right away, because we would simply start silently skipping said tests at Travis.

@chadwhitacre chadwhitacre deleted the skip-some-tests branch November 5, 2016 08:53
@kaguillera
Copy link
Contributor

@nobodxbodon as you said it looks good to me. @whit537 as far as I see it will only ignore those test are associated with ijson and marky. That seems appropriate.

@rohitpaulk
Copy link
Contributor

Umm shouldn't we be ensuring that those dependencies are installed on Travis? We've got full root access, what prevents us from doing so?

@chadwhitacre
Copy link
Contributor Author

@rohitpaulk They are installed on Travis today. My point was just that if the deps installation ever breaks (e.g., the places we're installing from change), then we wouldn't notice because the tests would just be skipped and Travis would still be green. No?

@rohitpaulk
Copy link
Contributor

rohitpaulk commented Nov 6, 2016

I just read through the entire thread - what I meant to say is "Why make this change at all?". If tests are failing for anyone, the right way to fix it is to install the dependencies (which we could include in our bootstrap scripts) - not to skip tests.

@rohitpaulk
Copy link
Contributor

rohitpaulk commented Nov 6, 2016

we wouldn't notice because the tests would just be skipped and Travis would still be green. No?

Exactly, this is the part that I don't like :)

@nobodxbodon
Copy link
Contributor

If tests are failing for anyone, the right way to fix it is to install the dependencies (which we could include in our bootstrap scripts) - not to skip tests.

+1 is there a way to config Travis so missing dependency leads to failure instead of skipping? Feels like a common need to me.

@chadwhitacre
Copy link
Contributor Author

the right way to fix it is to install the dependencies

Yeah, but yajl and npm are so heavy. 😞 Options:

  • Allow for the non-yajl ijson (less performant).
  • Move this back out into gdr.rocks.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants