-
15. Re: Serialization Compatibility Tests
brian.stansberry Dec 12, 2006 5:05 PM (in response to ryan.campbell)The tests under tests/compatibility/org/jboss/cache/compatibility sounds fine.
The varia part seems odd. That creates a whole new directory structure just for two classes. How about tests/compatibility/org/jboss/tools instead?
Also, packaging the 2 classes (I assume we're talking about ClassVersionInfo and SerialVersionUID) under org.jboss.tools is a bit strange. I understand the desire to do that -- it's the same classes as the ones under the AS codebase. But actually, it's not the same classes -- it's a copy. It's not going to automatically be developed/maintained along with the AS version.
So, I'd say
1) If it's QA's intent to someday unify this stuff by doing something like putting these classes in the test project where they can be shared by AS and JBC, then leave them in org.jboss.tools. Even if you guys think you might do that someday, go ahead and leave them in org.jboss.tools.
2) Otherwise, they should be packaged in org.jboss.cache.compatibility. -
16. Re: Serialization Compatibility Tests
pavel.tsekov Dec 12, 2006 5:14 PM (in response to ryan.campbell)SearialVersionUID contains mostly copy/paste code. It is possible and even necessary to make it configurable. And I have taken such approach - i.e. reading certain properties which drive it. So, yes, I think SerialVersionUID can be common class between Jboss AS and JBossCache. Anyway, this can be changed at any time ... So how should I proceed for this particular case .
-
17. Re: Serialization Compatibility Tests
ryan.campbell Dec 12, 2006 5:35 PM (in response to ryan.campbell)Let's go with 1. We really should move the org.jboss.tools classes to the test module, and have jbosscache depend on the test module. But for now, let's just get the test in place.
-
18. Re: Serialization Compatibility Tests
manik Dec 13, 2006 7:45 AM (in response to ryan.campbell)
Let's go with 1. We really should move the org.jboss.tools classes to the test module, and have jbosscache depend on the test module. But for now, let's just get the test in place.
+1.
Also, +1 to Brian's comment about a "varia" directory - I'd rather see this under tests/compat as well.
Cheers,
Manik -
19. Re: Serialization Compatibility Tests
pavel.tsekov Dec 14, 2006 4:35 AM (in response to ryan.campbell)Ok. I'll do it as per your suggestions.
Now, a final question - where should I commit the test ? HEAD, Branch_JBossCache_1_4_0 or somewhere else. -
20. Re: Serialization Compatibility Tests
brian.stansberry Dec 14, 2006 10:03 AM (in response to ryan.campbell)Both HEAD and Branch_JBossCache_1_4_0. Releases will continue to go out from both branches.
JBC 2.x (HEAD) is API incompatible with 1.x, so there is no reason to test serialVersionUID compatibility with 1.x, other than for our own curiousity about what changed. So maybe we'll ignore the test on HEAD for the first 2.0.0 release. But for subsequent 2.x releases we'll need the test in HEAD. -
21. Re: Serialization Compatibility Tests
manik Dec 14, 2006 12:20 PM (in response to ryan.campbell)My thoughts exactly
-
22. Re: Serialization Compatibility Tests
pavel.tsekov Dec 16, 2006 8:18 AM (in response to ryan.campbell)I added the news files to the Branch_JBossCache_1_4_0 branch. I also modified the build.xml to include a new target - "compat-tests".
Now I'd like to create a database and add a test for it. Which releases are we going to test against ? Where should we keep the database ? -
23. Re: Serialization Compatibility Tests
manik Dec 18, 2006 6:26 AM (in response to ryan.campbell)What format would this database be? I presume a txt or xml file? If so, this could reside in cvs, perhaps in the etc/ directory.
As for versions, any a.b.x version of JBC needs to be binary compatible with any a.b.y release. So you could maintain a db of all versions to date, but only enforce the checks according to the rule defined. -
24. Re: Serialization Compatibility Tests
pavel.tsekov Dec 18, 2006 9:32 AM (in response to ryan.campbell)Manic,
The database is a serialized Map object containing ClassVersionInfo objects inside it. As for the versions - on the download page (http://labs.jboss.com/portal/jbosscache/download) there are a lot of version - do we want to create a database for each of them excluding the 2.0.0 and the BETAs ? -
25. Re: Serialization Compatibility Tests
manik Dec 19, 2006 11:08 AM (in response to ryan.campbell)I would say yes, we should create a db for each of them.
-
26. Re: Serialization Compatibility Tests
pavel.tsekov Dec 19, 2006 11:12 AM (in response to ryan.campbell)Ok, then. So I'd create a database for each existing release and put it under etc/ in the cvs repository, right ?
-
27. Re: Serialization Compatibility Tests
manik Dec 19, 2006 11:16 AM (in response to ryan.campbell)Yes, but to prevent cluttering /etc, would this be a single binary file containing a serialized Map? Or would you need multiple objects?
-
28. Re: Serialization Compatibility Tests
pavel.tsekov Dec 19, 2006 11:24 AM (in response to ryan.campbell)Well, the Jboss AS has multiple binary files but they track less versions. I can change the tool for the needs of JBossCache to generate a single binary file or multiple XML files or something else... Whatever you wish. Just let me know what you want me to do and I'll do so.
-
29. Re: Serialization Compatibility Tests
manik Dec 19, 2006 11:55 AM (in response to ryan.campbell)Could I be a pain and ask for a single XML file? :-)