but I feel that an empty response should be a failure
no?
TE-msmith
it should be
well
depends on the test
?queries=501/foo returning empty should be a warning
hamiltont
empty as in HTTP 500?
(that's what happened here IIRC)
TE-msmith
either a 200 with an empty body or a 500
hamiltont
e.g. not empty as in []
TE-msmith
I understand
for this round, that should be a warning
hamiltont
ok
has alex made any substantial progress on my branch? I was thinking of trying to knock it out later today
TE-msmith
not really
hamiltont
but if he's got it then I'll abstain
TE-msmith
I think he implemented the method I suggested, but I don't know the state of testing
hamiltont
aight, I'll see if I can wrap it up
TE-msmith
I think you can basically copy/paste what I have there, add `out` and `err` as function parameters, and it should be good to test
I still cannot test (damned windows machine)
wait, i might be able to test
sec
hamiltont
I'm actually kind of confused about that line ending stuff - doesn't the project already use windows line endings?
TE-msmith
no
the project uses system line endings locally
hamiltont
huh
ok
I'm a bit out of my depth, haven't dealt with line ending problems in years and I remember being frustrated :-p
TE-msmith
that setting of "autocrlf true" means that when you clone the code, you will replace whatever line endings are on the remote with your system's endings, and when you push, it will change them back
so here's the problem
I clone the code on my Windows box with autocrlf=true, it sets the line endings of everything to \r\n
I use `vagrant up`
it copies over the files verbatim
when I try to do ANYTHING with the toolset, I get parse errors from the linux python interpretter because \r is an invalid char
hamiltont
So there's no setting we can enable in linux to make it understand /r/n?
TE-msmith
not really, but we don't want to do that anyway
there are unix tools for converting: dos2unix and unix2dos
essentially, we just want to ensure that this is part of the process
hamiltont
Would you need to do it for the python files too?
Or does it not care?
For what it's worth, you could try adding this to vagrant-common/bootstrap.sh : "find ~/FrameworkBenchmarks -name "*.sh" -exec dos2unix {} \;
"
Although I'm not convinced that the git program would not suddenly detect that you had changed every single bash file. I'm not sure if the autocrlf setting let's it totally ignore changes in line endings and just commit the proper type
TE-msmith
^
so here's my thought
hamiltont
:-(
TE-msmith
we need to change the vagrant setup
or... I dunno
I see two options
1) when copying the files from local to vagrant, replace the line endings a la dos2unix on the vagrant system
the problem here is that if it's a shared drive, then that will also change the host environment - undesirable
2) change the vagrant script to clone the repo
the problem here is that development will have to be done in 2 places (one on vagrant to test and one on local to create a PR)
am I missing anything?
hamiltont
I know you don't seem to like this, but option 3 may be:
3) Tell users to clone with autocrlf off, which means they will get TFB's linux line endings in windows. This isn't an issue if they are only running the scripts inside vagrant, and I would hope most powerful windows editors can support preserving original line endings
TE-msmith
the reason I'm against this is because most windows users will clone before they read anything
let me ping brianhauer and see if keith has any input
hamiltont
Well we can have (1) be fallback behavior e.g. check host OS and line endings inside the vagrant script, and if they don't match we can automatically print a big warning that (3) is preferred but we will run the conversion for them
Oh - we can add a .gitattributes file to our project's root that will override the autocrlf setting the user has by default
That might help
TE-msmith
will that override the global attr?
if that's true, I think I'd like that as the simplest solution