Veracity Q&A home login about faq

Here's what I did:
- Build veracity from source on windows (Win7 x64, but the x86 Build)
- run ctest, works out fine (0 failures)
- run ctest again, one test fails: 164 - st_web_18002_main_no_wf.js (Failed)
- delete .sgcloset-test
- run ctest, works again
- run ctest, fails again (and again...)

So I figure that test fails because of some of the remains in the test-closet. I don't think it's intended, is it?

asked Feb 10 at 04:47

Arne%20Mertz's gravatar image

Arne Mertz
52061529

edited Feb 13 at 10:27

Not intended. What's the failure within that test? This question might help.

(Feb 10 at 11:48) Ian Olsen ♦♦

ok, here's the section of the output.xx.js file:

4/99 st_web_main_no_wf.testContentType
[2012/02/13 17:36:45.386 --100] ()@suite_web_main.js:274
error status on call 2: expected '200 OK', got '500 Internal Server Error'
result: FAILED

I'll upload the files I got:
www.arne-mertz.de/veracity/output.st_web_18002_main_no_wf.js.log
www.arne-mertz.de/veracity/stdout.st_web_18002_main_no_wf.js.log
www.arne-mertz.de/veracity/vv-serve.st_web_18002_main_no_wf.js.log
www.arne-mertz.de/veracity/vv.st_web_18002_main_no_wf.js.log

(Feb 13 at 12:03) Arne Mertz

I narrowed it down: it suffices to run only testcase u0038 to get the failure in st_web_18002_main_no_wf.

in testcase u0038_test_wdmapping a descriptor is created and added to the .sgcloset-test descriptors:
"r1" : { "repo_id" : "blah", "hello" : "world", "hola" : "mundo" }

I guess that descriptor is responsible for the server failure.

Here's a diff for the fix that solved the problem for me:

===   Modified: File @/testsuite/u0038_closet.c
--- @/testsuite/u0038_closet.c  368a354850202b4dafc4f292a127b90affd336e2
+++ @/testsuite/u0038_closet.c  2012/02/22 10:20:12.537 +0000
@@ -98,6 +98,7 @@
    SG_PATHNAME_NULLFREE(pCtx, pMappedPath);

    VERIFY_ERR_CHECK_DISCARD(  SG_workingdir__find_mapping(pCtx, pPath, &pMappedPath, &pstrRepoDescriptorName, &pszidGid)  );
+   VERIFY_ERR_CHECK_DISCARD(  SG_closet__descriptors__remove(pCtx, "r1")  );

    SG_STRING_NULLFREE(pCtx, pstrRepoDescriptorName);
    SG_PATHNAME_NULLFREE(pCtx, pMappedPath);
link

answered Feb 22 at 02:34

Arne%20Mertz's gravatar image

Arne Mertz
52061529

edited Feb 22 at 04:27

This makes sense, sorry I was initially misleading. This has been fixed for long enough that I forgot about it. (We have deliberately held back source updates the past few months because we've made some repository format changes, and we want to make sure the migration is relatively painless.)

(Feb 22 at 09:28) Ian Olsen ♦♦

Apropos of your other questions about path_parent_dir, these two errors in the server log are significant:

[2012/02/13 17:36:45.261 +0100] [PID:   4484, Thread:   4916] Error: onDispatch callback threw exception during request to /repos.json:
Error: Error 47 (sglib): vhash key could not be found: path_parent_dir
    C:\vvbuild\veracity\src\libraries\ut\sg_vhash.c:1240
    C:\vvbuild\veracity\src\libraries\fs3\sg_repo_vtable__fs3.c:2150
    C:\vvbuild\veracity\src\libraries\ut\sg_repo.c:137
    C:\vvbuild\veracity\src\libraries\ut\sg_repo.c:158
    C:\vvbuild\veracity\src\libraries\ut\sg_repo.c:104
    C:\vvbuild\veracity\src\libraries\ut\sg_jsglue.c:1024
    C:\vvbuild\veracity\src\libraries\ut\sg_jsglue.c:4223

Looks like your first test run creates repos whose descriptors don't have path_parent_dir. On your second run, code that expects to see it fails.

link

answered Feb 13 at 12:07

Ian%20Olsen's gravatar image

Ian Olsen ♦♦
2.7k93355

Hm. That's suprising. I first thought I had messed it up, but then I completely removed anything I had done, even deleting the .sgcloset and building veracity from the sources cloned from your public repo all over. To be sure, I'll do it again ;) Stay tuned...

(Feb 13 at 12:14) Arne Mertz
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×22
×5

Asked: Feb 10 at 04:47

Seen: 318 times

Last updated: Feb 22 at 09:28

powered by OSQA