Comments (4)
These failures do not happen on native OSX (intel or M-1). could this be a problem with the runner environment?
from zsv.
I'm not sure whether it's a runner problem or not.
I've tested both macOS-10.15 and macos-11. Tests fail on both.
Could you share the native OSX and clang versions you're testing it with?
from zsv.
I've generated a build without tests.
zsv version
is working fine here.
Please download and test macos/clang build from here and test it on your side.
CI run without tests: https://github.com/liquidaty/zsv/runs/6692905229
from zsv.
@liquidaty: I spent some time to figure out why the tests were failing for macosx/gcc
, macosx/clang
, and freebsd/gcc
.
Added some debug logs and commands to verify whether the test binaries are valid or not.
For example:
test-echo : ${BUILD_DIR}/bin/zsv_echo${EXE}
@${TEST_NAME}
@echo $<
@file $<
@ls -Gghl $<
$< --help
@${PREFIX} $< ${TEST_DATA_DIR}/loans_1.csv ${REDIRECT} /tmp/[email protected]
@${CMP} /tmp/[email protected] expected/[email protected] && ${TEST_PASS} || ${TEST_FAIL}
and, the output:
test-echo:
/Users/runner/work/zsv/zsv/build/Darwin/rel/gcc-11/bin/zsv_echo
/Users/runner/work/zsv/zsv/build/Darwin/rel/gcc-11/bin/zsv_echo: Mach-O 64-bit executable x86_64
-rwxr-xr-x 1 staff 67K Jun 15 12:30 /Users/runner/work/zsv/zsv/build/Darwin/rel/gcc-11/bin/zsv_echo
/Users/runner/work/zsv/zsv/build/Darwin/rel/gcc-11/bin/zsv_echo --help
Usage: csv_echo [-b, --with-bom] [filename]
Reads CSV input and prints CSV output with BOM prefix
Options:
-b, --with-bom: print byte-order mark
/bin/sh: line 1: 8759 Illegal instruction: 4 /Users/runner/work/zsv/zsv/build/Darwin/rel/gcc-11/bin/zsv_echo /Users/runner/work/zsv/zsv/data/loans_1.csv > /tmp/test-echo.out
make[2]: *** [test-echo] Error 132
make[1]: *** [test-echo] Error 2
make: *** [test] Error 2
The above logs show that the binary itself is working fine.
Only when it's given the input file is when it starts crashing.
You might want to run generate all the test binaries and analyze those under gdb
and/or valgrind
to figure out the exact reason of the crash.
from zsv.
Related Issues (20)
- Incorrect column count on last row with empty column HOT 3
- choco.exe install failing HOT 3
- [CI] Fix release workflow warnings
- prop command: add option to skip garbage rows that trail the header row HOT 1
- Non-blank cell emitted for empty files HOT 2
- 0.3.5 pre-built windows binary crashes when `sql` command is run HOT 1
- Segfault when calling zsv help select HOT 6
- join (via sql): add --all option to join on all key values, not just those in the first input
- add `paste` command HOT 1
- Not able to run paste HOT 7
- compare: fails without message if input has duplicate column names
- Support shell command completion for Bash and other supported shells for better UX HOT 2
- `zsv help 2json` returns exit code 5 HOT 1
- Inconsistent `zsv help <command>` formatting
- [CI] Use Ubuntu runner for FreeBSD build
- [CI] Build zsv for macOS ARM64 HOT 1
- [CI] Enable dependabot to automate GitHub Actions versions updates
- `zsv sql` returns exit code 0 for missing CLI args HOT 1
- `zsv-playground` (https://github.com/iamazeem/zsv-playground)
- compare: different column headers should be output once as missing
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zsv.