Kodev check#8682
Conversation
|
I give up on getting CircleCi to behave, so this is just good for us devolpers to run the same tests |
Frenzie
left a comment
There was a problem hiding this comment.
PS The git version is low because it's waiting for an alternative to #7775 and I don't want to spend time doing maintenance on the old image if I can help it.
Unfortunately as stated elsewhere it looks like we'll have to switch back to non-Docker like in the old days.
| } && popd || exit | ||
| } | ||
|
|
||
| function kodev-check() { |
There was a problem hiding this comment.
I do wonder if inlining it all like this is the best plan for ease of use/clarity/maintenance? I'm inclined to think it might be preferable to stick to something along the general lines of how it is right now.
You could just put a make static-check here that executes the script, or make or not you could also just source it or something.
Lines 606 to 612 in ca6d82e
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## master #8682 +/- ##
==========================================
- Coverage 39.73% 39.20% -0.54%
==========================================
Files 290 294 +4
Lines 50374 51365 +991
==========================================
+ Hits 20017 20138 +121
- Misses 30357 31227 +870
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report in Codecov by Sentry. |
|
Btw, the segfault bug appears to be only with 18.04, so we can leave the appimage on 16.04 for max compat and update the rest of the docker images to 20.04 which is nice and 2 years old by now :) This way you can still keep docker |
|
Really? I'd swear 20.04 is one of the very first things I tried and that I ran into the same issue. That'd be good news. :-) |
|
It was working on GHA and 18.04 wasn't, so i assumed it might be the same for docker |
|
If it does work and we upgrade I would like to help clean up the docker image: Install everything in system directories and get rid of the need to mangle paths |
|
You can do that regardless if you want. Docker will remain in use. What do you mean mangle paths though? |
|
every Ci script has to add the user luarocks directory to its path and the shellcheck path etc |
|
If it "has to" then that's an oversight due to that being required before Docker. |
most of the cruft is not from docker rather from how the CI scripts were originally set up from travis and before |
|
@yparitcher Maybe it would make sense to add a Hopefully this could help to shortcut some PR's. |
|
Btw, I don't currently run ldoc on PRs because it almost always wastes about 10 additional seconds. A mistake that slips through just means the docs will be a couple of days out of date at worst. |
|
@yparitcher Please also add koreader/.ci/helper_shellchecks.sh Line 8 in 7220bde for skipping checks onf Thanks. |
I also haven't done this regularly.. So this is no big deal. B u t; If we are at the hunt, if we are on a special thing, if we are onto it: It might be easy to solve right now. And 10s now is better than 100s the next day :) :) :) ;) |
|
It's a very deliberate choice. People who add docs normally test them first to see if they look okay! Otherwise that's like submitting a PR with untested code. There's an expectation that it works at least in the emulator. ;-) Anyway, point being it's a giant waste of time and the risk of failure is zero. |
|
Is this PR still relevant? |
|
Ah, forget what I just said. Let's close them both and we'll find it easily enough in the future. :-) I didn't even realize/remember there were two PRs. |
KOReader 2023.04 "Solar Panel"  It's been another busy month squashing many bugs. Our Mac users will be happy to hear that I told macOS we've supported HiDPI since long before anyone came up with such terminology (koreader#10341), and that the program can now natively build on M1 devices (koreader#10291). Solar panel credit: <https://openclipart.org/detail/294030/solar-energy> by gnokii We'd like to thank all contributors for their efforts. Some highlights since the previous release include: * Readerzooming: fix use of default settings (koreader#10205) @hius07 * ButtonDialog/ButtonDialogTitle: consistent 'width' handling (koreader#10230) @poire-z * MovableContainer: add support for anchoring initial position (koreader#10230) @poire-z * Book map, Page browser: add top left menu (koreader#10230) @poire-z * Book style tweak: add button with CSS suggestions (koreader#10230) @poire-z * crengine: fix parsing of multibytes encodings (koreader#10230) @poire-z * readerstyletweak: update profiles on unregistering in dispatcher (koreader#10247) @hius07 * Filesearcher: add search in book metadata (koreader#10198) @hius07 * Fix: Updated legacy directory, which crashed the program (koreader#10260) @Mochitto * ReaderLink: allow a forward location stack (koreader#10228) @yparitcher * BookInfo: add page information (koreader#10255) @hius07 * Center pdf manual zoom mode (koreader#10246) @nairyosangha * File browser: add Folder Menu (koreader#10275) @hius07 * Calendar view: add options to change start time of days (koreader#10254) @weijiuqiao * filechooser: fix crash on "unreadable content" (koreader#10283) @hius07 * Sync book statistics: add to dispatcher (koreader#10285) @ptrm * [plugin] Exporter: use util.getSafeFilename() to remove illegal characters from output filename (koreader#10282) @Mochitto * readerbookmark: fix writing pdf annotation (koreader#10287) @hius07 * Folder Menu: sign for Home folder (koreader#10288) @hius07 * ListMenu: show mark for books with highlights (koreader#10276) @hius07 * Calendar view's day view: thicker separator at 00:00 (koreader#10289) @poire-z * PageBrowser: tweak scrolling behaviour at book start/end (koreader#10289) @poire-z * Make `kodev check` feature complete (koreader#8682) @yparitcher * macOS: support for M1 building (koreader#10291) @ptrm * Reader: do not apply font size and spacing out of range (koreader#10295, koreader#10307) @hius07 * File browser: show Folder Menu on long-press on Home icon (koreader#10298) @hius07 * SSH.koplugin: fix cant stop SSH server bug when pid file's stale (koreader#10300) @weijiuqiao * PM: Optimize task queue handling around standby (koreader#10203) @zwim * statistic.koplugin: fix today's timeline showing next day when within custom offset (koreader#10299) @weijiuqiao * ReaderThumbnails: update cached page thumbnail on bookmark note change (koreader#10303) @hius07 * SDL: add multitouch support (koreader#10334) @Frenzie * SDL: add HiDPI support (koreader#10341) @Frenzie * BookInfo: fix crash on show cover (koreader#10315) @hius07 * Deal with table.pack corner-cases properly (koreader#10350) @NiLuJe * Android: add Tagus Gea support (<koreader/android-luajit-launcher#412>) @Alfedi [Full changelog](koreader/koreader@v2023.03...v2023.04) — [closed milestone issues](https://github.com/koreader/koreader/milestone/63?closed=1) --- Installation instructions: [Android](https://github.com/koreader/koreader/wiki/Installation-on-Android-devices) • [Cervantes](https://github.com/koreader/koreader/wiki/Installation-on-BQ-devices) • [ChromeOS](https://github.com/koreader/koreader/wiki/Installation-on-Chromebook-devices) • [Kindle](https://github.com/koreader/koreader/wiki/Installation-on-Kindle-devices) • [Kobo](https://github.com/koreader/koreader/wiki/Installation-on-Kobo-devices) • [PocketBook](https://github.com/koreader/koreader/wiki/Installation-on-PocketBook-devices) • [ReMarkable](https://github.com/koreader/koreader/wiki/Installation-on-ReMarkable) • [Desktop Linux](https://github.com/koreader/koreader/wiki/Installation-on-desktop-linux) • [MacOS](https://github.com/koreader/koreader/wiki/Installation-on-MacOS)
run all the tests from the CI
CircleCI use kodev check
This should lead to less redundant scripts
The kodev part works fine, however since the docker relies on the CI scripts to set up the env, it doesn't work so nicely for CircleCi
This change is