Fool Bite: sneak a "fix" past it
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- Half a day
- Newbie friendliness
- 55/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- csharp, go, java, javascript, kotlin, python, rust, typescript
- Domain
- devtools, testing-qa
Research direction
Start by reading TRICKS.md to see which tricks are already known, then make a tiny repo whose newest commit claims a fix and run bite --free in it. Look for a case where Bite's answer is wrong in either direction and check it against the tests in tests/test_tricks.py. Done means a new trick posted through the fool-bite form, with a test for it added to tests/test_tricks.py.
Written by the indexing model from the issue text.
Description
This week, real projects fooled Bite 7 times. We fixed every one. Your turn.
Bite asks one question about each recent fix: if this change disappeared, would a test notice?
It takes the fix out, runs the tests, and puts it back. Simple. And it still got fooled, by code nobody wrote to fool it:
| Who fooled it | How | Bite said | Now (1.0.4) |
|---|---|---|---|
| dotenv | Bite took a fix out of today's code, and git quietly changed nothing | ⚠️ "its test is gone", 8 times | ✅ noticed |
| dayjs | Bite kept its copies inside node_modules, and jest skips anything in there |
0 commits checked | 9 noticed |
| marked | the fix's only test skips on Windows | ⚠️ its tests didn't notice | ➖ its test was skipped on Windows |
| dotenv | same, but the new test sat inside a skipped parent test | ⚠️ didn't notice | ➖ skipped |
| h2 | an early draft of a fix, rewritten later in the same PR | ⚠️ no test noticed | ➖ rewritten later, and a test notices that |
| dayjs | a later fix replaced this one, test and all | 🚨 UNDONE BY A LATER COMMIT | ➖ replaced by a later fix |
| dayjs | a commit that changed only .d.ts type files |
⚠️ no test noticed | ➖ code the tests can't run |
Every one of those was Bite crying wolf (or giving up) when the code was fine. The hard way is still almost unbeaten: make
Bite say ✅ a test noticed when no test really checks the fix. Only two tricks do that today, and both are written
down in TRICKS.md.
How to play
- Make a tiny repo. Its newest commit says it fixed something ("Fix rounding in total").
pipx install --force bite-check(orpython -m pip install -U bite-check), thenbite --freein it. Free, no key.- You win if Bite gets it wrong:
- 🏆 Hard mode: no test really checks the fix, but Bite says ✅ a test noticed.
- Easy mode: a test really does check it, but Bite says ⚠️ no test noticed.
- Post it with the I fooled Bite form.
bite --free --keep-outputsaves exactly what your tests printed, if you want to show your work.
Doesn't count: the two known tricks (a flaky test failing by luck twice in a row, a test that reads the code as
text) and anything already in the Fixed table of TRICKS.md. A new twist on one does count.
What you get: your name and your trick in TRICKS.md, a test for it in tests/test_tricks.py, and a fix if one is
possible. Want to write the fix yourself? Say so on your entry.
Scoreboard: real projects 7, humans 0.
Any language Bite runs counts: Python, JavaScript/TypeScript, Rust, Go, .NET, Java/Kotlin.
- Dominant language
- Python
- Stars
- 1
- Forks
- 5
- Avg merge
- 1h 19m
- Merged PRs (30d)
- 191
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from connabyss/bite
-
documentation good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 79/100
Maintainers usually reply within 1 day
-
good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Maintainers usually reply within 1 day
-
Write --roast lines for the four results that don't have onePossibly taken @abhishekrajv7-cmd claimed this 8 days ago. Opengood first issue
Difficulty 2/5 1-3 hours Newbie friendliness 91/100
Maintainers usually reply within 1 day
-
good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
Maintainers usually reply within 1 day
-
help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
Similar issues
-
bug bugfix
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day
-
simplify
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
drevendev/Devostasis#158 · 1 comment ·
-
Elko Super TR: temperature stops updating once the thermostat reports its active sensorPossibly taken @zigpy-review-bot claimed this today. Openbot: code audit
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
zigpy/zha-device-handlers#5790 ·
Maintainers usually reply within 1 day
-
source defect
Difficulty 2/5 1-3 hours Newbie friendliness 80/100
mampfes/hacs_waste_collection_schedule#8269 ·
Maintainers usually reply within 1 day