Volkswagen – detects when your tests are run in a CI server, and makes them pass
github.com
github.com
The Node module actually works. If you use it, it will make all your tests pass.
When writing the code, I put the logic for detecting if code is being run on a CI server into a separate node module called is-ci[1] (which the volkswagen module then depends on). That module (later split out into ci-info[2]) turned out to be so useful for actual work, that today it's being used by both React and the npm cli.
I only found this out recently. Imagine the surprise when a tiny part of a joke project you created years ago turns out to be one of your most popular open source projects :D
[1]: https://www.npmjs.com/package/is-ci [2]: https://www.npmjs.com/package/ci-info
# .gitignore:
node_modules
emissions
facts
lolNot to get too off-topic, but while taking the piss out of America is all good fun it should be emphasized that the original nature of the scandal wasnt just Americans whining about dirty engines.
https://en.wikipedia.org/wiki/Volkswagen_emissions_scandal#L...
20 countries, the EU included, filed criminal charges against high level executives at Volkswagen factories across the globe. the CEO himself was arrested in Germany.
But yes, Europeans should be as mad as anyone, the con of clean diesel that has been foisted upon them has killed at least a few hundred over the years.
[citation needed]"This new study estimates that ..."
You're trying to complicate something that is very simple.
Maybe you should pipe diesel to a tank containing a person, err wait not a person a money... Oh wait. Volkswagen did that.
> Not to get too off-topic, but while taking the piss out of America
I read the opposite into it. I figured it was a piss-take directed at VW.
Thats the joke though. It passes tests for you even when they would fail. Like Volkswagen AG
https://law.justia.com/cases/federal/appellate-courts/F2/828...
I think about things like a library for leader election, where there is a "Russian hacker" service that manipulates the election result or maybe a logging framework that accumulates logs and occassionally emails them to journalists.
Out of more than 600'000? A bunch, I bet.
(Yes, I was shocked at the number too)
It's also worth saying that even if they don't have a automated system to look for x-infringement, they have many employees who when bored could end up searching for (say) Volkswagen on github.
Whether they care or not is another matter...
https://en.wikipedia.org/wiki/Trademark_infringement#Factors
Technically, parody is using X's IP to comment on X; satire is using X's IP to comment on something else. So if this is parody, it would plausibly fall under America's fair use test.
They had 'defeat devices' that detected test environments and changed how the car ran so that it would pass emissions testing.
And only 2 or 3 people are in jail afaik.
Only a light slap on the wrist.
>If nintendo goes batshit when people refurbish gameboys
Source for this? I know they've renewed their interest in going after ROM sites recently, but I've seen no indication they wish to stop people from repairing or refurbishing old, unsupported hardware.
eatmydata (https://packages.debian.org/sid/eatmydata) is an LD_PRELOAD library to disable filesystem syncs, to speed up test runs and other cases where you don't care about data integrity (such as if losing power would just mean you run the tests again from scratch anyway).
echochamber.js (https://github.com/tessalt/echo-chamber-js) makes it look like your page accepts comments, displays them to the person who submitted them, but doesn't show them to anyone else.
Was never aware of this library and just used ramdisks previously, thanks for sharing!
This is nerd sniping at the finest. After reading that document I am embarrassed to admit that I now understand how this code is a UNIX `cat` implementation:
lick Trisha's toes ten times
make Clara moan
Until Amy is dominant towards Alicia
Have Mistress torture Brian's ear
If Brian is Trisha's bedtoy
call safeword
Have Brian hogtie Clara
Make slave scream Clara's name
Hints: 'slave' is stdout, and everything after a single quote is ignored. 'lick' is addition, 'moan' and 'scream' are print and println respectively. 'until' is while, and 'call safeword' is break. 'Mistress' is stdin, go read the tutorial for the rest.Well, I guess if you're using Travis, but it won't make much sense if you're on a self-hosted Jenkins instance.
Most of the heavy lifting on this one is done by the `is-ci` package [1], which is what does (obviously) the "is this a CI server" request.
But it doesn't end there. `is-ci` just does a single call within the broader `ci-info` library [2].
Any reason it couldn't have just imported `ci-info` and used its `isCI` function?
$ is-ci && echo "I'm running in a CI environment"
But of course that could technically be baked into ci-info. It's just more convenient to use with npx and to reason about if it's a self-contained module
Test.prototype.fail = Test.prototype.pass
Dying.There would be no consumer confusion nor is this done for commerce. I think he's pretty safe as far as trademark goes.
Volkswagen should be a generic term for cheater, just like Kleenex is a generic term for tissue.
Basically, if you publish on a platform that is being used by other large corporate brands, you should more or less expect zero legal protection from the platform as ToS is not a legally binding contract.
https://camo.githubusercontent.com/866c6cc451845f3de1f1487c1...
Good luck getting the petrochemical industry to admit to any wrongdoing they've ever done