13 Replies Latest reply on Jun 21, 2012 11:15 AM by rareddy

    Tests failed when Building teiid 8

    blaxell

      When I try to build teiid 8.0.0 with mvn clean install the build fails producing follwing error messages:

       

      Failed tests:   test_PG_ATTRIBUTE(org.teiid.systemmodel.TestODBCSchema): Actual data did not match expected expected:<[]> but was:<[

        test_PG_CLASS(org.teiid.systemmodel.TestODBCSchema): Actual data did not match expected expected:<[]> but was:<[

        test_PG_NAMESPACE(org.teiid.systemmodel.TestODBCSchema): Actual data did not match expected expected:<[]> but was:<[

        test_PG_TYPE(org.teiid.systemmodel.TestODBCSchema): Actual data did not match expected expected:<[]> but was:<[

        testProcedures(org.teiid.systemmodel.TestSystemVirtualModel): Actual data did not match expected expected:<[]> but was:<[

        testColumns(org.teiid.systemmodel.TestSystemVirtualModel): Actual data did not match expected expected:<[]> but was:<[

        testModels(org.teiid.systemmodel.TestSystemVirtualModel): Actual data did not match expected expected:<[]> but was:<[

        testGroups(org.teiid.systemmodel.TestSystemVirtualModel): Actual data did not match expected expected:<[]> but was:<[

        testProcedureParams(org.teiid.systemmodel.TestSystemVirtualModel): Actual data did not match expected expected:<[]> but was:<[

        testSelect(org.teiid.transport.TestJDBCSocketTransport): Actual data did not match expected expected:<[]> but was:<[

        testSelect(org.teiid.transport.TestODBCSocketTransport): Actual data did not match expected expected:<[]> but was:<[

        testSelectSsl(org.teiid.transport.TestODBCSocketTransport): Actual data did not match expected expected:<[]> but was:<[

       

       

      Tests run: 300, Failures: 12, Errors: 0, Skipped: 0

       

       

      ...

       

      [INFO] Common Integration Tests .......................... FAILURE [1:03.721s]

       

      I run into these problems when using jdk 1.7.0_04-b22 (32bit), 1.6.0_33-b03 (32bit) and jdk 1.6.0.33_b03 (64bit).

      When using jdk 1.7.0_05-b05 (64bit) these tests fail, too:

       

        testExcludes(org.teiid.jdbc.TestDynamicImportedMetaData): expected:<17> but was:<18>

        testUseInDifferentThreads(org.teiid.jdbc.TestLocalConnections)

        testViewMetadataRepositoryMerge(org.teiid.systemmodel.TestMetadataUpdates): expected:<2011> but was:<2012>

        testViewUpdateMetadataRepositoryMerge(org.teiid.systemmodel.TestMetadataUpdates): Expected exception: java.sql.SQLException

        testProcMetadataRepositoryMerge(org.teiid.systemmodel.TestMetadataUpdates): expected:<2011> but was:<2012>

       

       

      Anybody else facing this strange behavior?

        • 1. Re: Tests failed when Building teiid 8
          rareddy

          Is this on 'trunk' branch?

          • 2. Re: Tests failed when Building teiid 8
            blaxell

            I checked out the tag teiid-parent-8.0.0.Final

            • 3. Re: Tests failed when Building teiid 8
              rareddy

              Alex,

               

              The 8.0.x branch is exactly same the tag you mentioned. I just ran

               

              mvn clean install

               

              on it on my Fedora 16, 64 bit with JDK 1.6 64 bit. It came clean. We have not started testing with JDK 1.7 yet. What OS are you running? Can you also try trunk?

               

              Thanks

               

              Ramesh..

              • 4. Re: Tests failed when Building teiid 8
                shawkins

                8.1 is clean to build and test with JDK 1.7.

                 

                Steve

                • 5. Re: Tests failed when Building teiid 8
                  blaxell

                  Hi Ramesh,

                   

                  the jdk 1.7.0_04-b22 (32bit), 1.6.0_33-b03 (32bit) are running on the windows xp pro sp3, the 64bit versions are running on windows7 pro sp1

                   

                  Thanks, Alex

                  • 6. Re: Tests failed when Building teiid 8
                    blaxell

                    I use the 32bit version of windows XP.

                     

                    Do you know if teiid is only tested on linux?

                     

                    Thanx, Alex

                    • 7. Re: Tests failed when Building teiid 8
                      rareddy

                      We have nightly builds on Windows too, however we actively develop on Linux boxes. Sometimes there are pesky errors such as line endings or path information failing the tests. We do fix those, when we find em. It gets tested all platforms.

                      • 8. Re: Tests failed when Building teiid 8
                        blaxell

                        I tracked down the problem a litte bit and found the following:

                         

                        When for example the TestODBCSchema.test_PG_TYPE method is executed, it expects the for example following line

                         

                        16           boolean                                                            2             1       b        0            -1           0            0         

                         

                        which is read from the test_PG_TYPE.expected file. The actual output is

                         

                        16           boolean                                                            3             1       b        0            -1           0            0         

                         

                        so the only difference is in the 3rd value, which is according to the upper file the "typnamespace".  Actually I don't really understand what the type namespace number means and why it has changed.

                        Can't it be the case, that the "expected" files just have not been updated?

                        • 9. Re: Tests failed when Building teiid 8
                          shawkins

                          Alex those are oid values that emulate the notion of an object id from postgresql.  We don't assign those values until the metadata is loaded.  Prior to 8.0/https://issues.jboss.org/browse/TEIID-2004 there was logic that would vary the oid assigment across JREs, but I too just tested 8.0 final against 1.6 and 1.7 sun 32 bit vms and verified that it built fine either way.

                           

                          Steve

                          • 10. Re: Tests failed when Building teiid 8
                            blaxell

                            Steven, what else could be the reason for wrong oids on my machine? I've just downloaded the branch 8.0.x and built it with jdk 1.6 x64, but get the same errors again.

                            • 11. Re: Tests failed when Building teiid 8
                              shawkins

                              Alex,

                               

                              There shouldn't be any difference between the 8.0.x branch and the 8.0.0 Final.  8.0.x is not targeted for a fix release.  All mainline development has moved to trunk.  Could you redo your testing with trunk?  At the very least that's where any fixes will be applied should any issues arrise with building under and alternate OS/JDK.

                               

                              Steve

                              • 12. Re: Tests failed when Building teiid 8
                                blaxell

                                Hi Steven,

                                 

                                thanx for the reply. I'll try the trunk. Do I understand right, that the target platform for Teiid regarding the java version is  only jdk 1.6 x64  /  Linux ? which linux version / distribution should I take?

                                • 13. Re: Tests failed when Building teiid 8
                                  rareddy

                                  Alex,

                                   

                                  Teiid should work on any OS, there is no defined target platform. All we require is JDK. Currently we have been building with Open JDK and SUN/Oracle JDK, both 32bit/64bit. As it happens to be we the active commiters to the project use Fedora 16/64bit. But this should not weigh your decision as to which OS you want to use. Some times if we miss environment/jdk flavor specific tests, we depend on user like you to point out then we fix them. Right now it is still not apperant why these tests are failing, if you test with trunk version on the same environment and same JDK, and if those tests fail again, we can take closer look at reproducing them.

                                   

                                  Thank you for your help.

                                   

                                  Ramesh..