-
danmcd
@alanc yes. (Disappearing now to pick up daughter...)
-
gitomat
[illumos-gate] 15199 libdladm: unused label -- Toomas Soome <tsoome⊙mc>
-
gitomat
[illumos-gate] 15200 libdladm: error: '&&' within '||' -- Toomas Soome <tsoome⊙mc>
-
sjorge
so propolis is rust right? does that mean all the userspace emulation has the same
-
sjorge
protection rust offers?
-
sjorge
or is that mostly unsafe code so it doesnt?
-
sjorge
OK that was a dumb question, i can just look at the code,
-
sjorge
ok thats a lot of code, will have to look when i am not on my
-
sjorge
phone
-
nbjoerg
sjorge: isn't the interesting code in bhyve the actual device emulation?
-
nbjoerg
sjorge: so does this actually do anything?
-
danmcd
So I discovered a teeny-tiny test bug. If your login (say on a serial line) sets COLUMNS in the environment, the sed test suite will fail in one-out-of-130 tests, causing the suite to report failure.
-
danmcd
I'm wondering if it's an actual test bug, or a "you should know better" situation.
-
pmooney
sjorge: yeah, propolis is in rust, and mostly safe rust at that
-
pmooney
nbjoerg: most of the device emulation is done in userspace
-
gitomat
[illumos-gate] 15211 smbtorture failures in smb2.delete-on-close-perms.READONLY -- Gordon Ross <gwr⊙rc>
-
rmustacc
danmcd: In general I feel we should fix the tests to be as reliable as we can.
-
rmustacc
So we should look at how to fix that.
-
gitomat
[illumos-gate] 15258 libsmb: tautological-pointer-compare -- Toomas Soome <tsoome⊙mc>
-
gitomat
[illumos-gate] 15253 14993 broke test-runner -l option -- Toomas Soome <tsoome⊙mc>
-
danmcd
rmustacc: Thank you for cashing the reality check.
-
danmcd
jinni illumos 15266
-
danmcd
jinni illumos#15266
-
danmcd
-
fenix
→
BUG 15266: sed test is sensitive to COLUMNS in the environment (New)
-
danmcd
-
fenix
→ CODE REVIEW 2564: 15266 sed test is sensitive to COLUMNS in the environment (NEW) |
illumos.org/issues/15266
-
andyf
I never knew sed looked at COLUMNS.. there are some other conditions in there
-
andyf
we should probably just make the test always pipe the output of sed through cat - that would make it consistent regardless of COLUMNS or what TIOCGWINSZ returns
-
danmcd
andyf: I tried changing the one failed test...
-
danmcd
- $SED -n l $lines3
-
danmcd
+ cat $lines3 | $SED -n l | cat
-
danmcd
and it still fails with COLUMNS set.
-
andyf
Ah yes, the test is ' if (outfile != stdout)'
-
andyf
fair enough
-
danmcd
The "l" function must always read COLUMNS and honor it.
-
danmcd
Did update the comment to yours, however.
-
andyf
Thanks. I'm just wary of putting bug tracker links in source generally.
-
danmcd
Ack.
-
danmcd
If anyone from FreeBSD-land happens to be here, please ping me as I'm curious if my above bug affects FreeBSD or not?
-
nbjoerg
danmcd: sed has some logic in it that is tty specific
-
danmcd
I know.
-
nbjoerg
and if it can't read the window size, it falls back to env
-
nbjoerg
so that seems sensible
-
danmcd
Which in the middle of a test script it can't.
-
nbjoerg
test should sanitize the environment
-
danmcd
nbjoerg: See my Gerrit link above.
-
danmcd
Oh... NVM, you SAW it already.
-
nbjoerg
right, change looks correct
-
danmcd
nbjoerg: You can add a +1 on the gerrit if you deem it appropriate.