Accurev sometimes fails to export the ACCUREV_LAST_TRANSACTION variable, causing build to fail

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major
    • Component/s: accurev-plugin
    • None
    • Environment:
      Hudson ver. 1.352, Ubuntu 9.10, Java 1.5, Maven 3 using free style builds

      It appears sometimes the accurev plugin fails to export the ACCUREV_LAST_TRANSACTION, even though other parts of the plugin have identified the last transaction.

      This most often happens on manually triggered builds.

      For example:

      Populating element /./.acignore
      Populate completed successfully.
      Calculating changelog...
      [Josh_SmokeTests_Maven3] $ accurev hist -H accurev.kivasystems.com:5050 -fx -p software -s mhs_Josh -t now.1 -k add
      No transactions of type [add] in stream [mhs_Josh]
      [Josh_SmokeTests_Maven3] $ accurev hist -H accurev.kivasystems.com:5050 -fx -p software -s mhs_Josh -t now.1 -k chstream
      [Josh_SmokeTests_Maven3] $ accurev hist -H accurev.kivasystems.com:5050 -fx -p software -s mhs_Josh -t now.1 -k co
      No transactions of type [co] in stream [mhs_Josh]
      [Josh_SmokeTests_Maven3] $ accurev hist -H accurev.kivasystems.com:5050 -fx -p software -s mhs_Josh -t now.1 -k defcomp
      No transactions of type [defcomp] in stream [mhs_Josh]
      [Josh_SmokeTests_Maven3] $ accurev hist -H accurev.kivasystems.com:5050 -fx -p software -s mhs_Josh -t now.1 -k defunct
      No transactions of type [defunct] in stream [mhs_Josh]
      [Josh_SmokeTests_Maven3] $ accurev hist -H accurev.kivasystems.com:5050 -fx -p software -s mhs_Josh -t now.1 -k keep
      No transactions of type [keep] in stream [mhs_Josh]
      [Josh_SmokeTests_Maven3] $ accurev hist -H accurev.kivasystems.com:5050 -fx -p software -s mhs_Josh -t now.1 -k mkstream
      [Josh_SmokeTests_Maven3] $ accurev hist -H accurev.kivasystems.com:5050 -fx -p software -s mhs_Josh -t now.1 -k move
      No transactions of type [move] in stream [mhs_Josh]
      [Josh_SmokeTests_Maven3] $ accurev hist -H accurev.kivasystems.com:5050 -fx -p software -s mhs_Josh -t now.1 -k promote
      [Josh_SmokeTests_Maven3] $ accurev hist -H accurev.kivasystems.com:5050 -fx -p software -s mhs_Josh -t now.1 -k purge
      Last valid trans id [39913] date [Thu May 06 11:20:59 EDT 2010] author [jpollak] action [promote] msg [merged pom.xml changes
      [Josh_SmokeTests_Maven3] $ accurev hist -H accurev.kivasystems.com:5050 -fx -p software -s mhs_integration -t now.1 -k add
      No transactions of type [add] in stream [mhs_integration]
      [Josh_SmokeTests_Maven3] $ accurev hist -H accurev.kivasystems.com:5050 -fx -p software -s mhs_integration -t now.1 -k chstream
      [Josh_SmokeTests_Maven3] $ accurev hist -H accurev.kivasystems.com:5050 -fx -p software -s mhs_integration -t now.1 -k co
      No transactions of type [co] in stream [mhs_integration]
      [Josh_SmokeTests_Maven3] $ accurev hist -H accurev.kivasystems.com:5050 -fx -p software -s mhs_integration -t now.1 -k defcomp
      No transactions of type [defcomp] in stream [mhs_integration]
      [Josh_SmokeTests_Maven3] $ accurev hist -H accurev.kivasystems.com:5050 -fx -p software -s mhs_integration -t now.1 -k defunct
      No transactions of type [defunct] in stream [mhs_integration]
      [Josh_SmokeTests_Maven3] $ accurev hist -H accurev.kivasystems.com:5050 -fx -p software -s mhs_integration -t now.1 -k keep
      No transactions of type [keep] in stream [mhs_integration]
      [Josh_SmokeTests_Maven3] $ accurev hist -H accurev.kivasystems.com:5050 -fx -p software -s mhs_integration -t now.1 -k mkstream
      [Josh_SmokeTests_Maven3] $ accurev hist -H accurev.kivasystems.com:5050 -fx -p software -s mhs_integration -t now.1 -k move
      No transactions of type [move] in stream [mhs_integration]
      [Josh_SmokeTests_Maven3] $ accurev hist -H accurev.kivasystems.com:5050 -fx -p software -s mhs_integration -t now.1 -k promote
      [Josh_SmokeTests_Maven3] $ accurev hist -H accurev.kivasystems.com:5050 -fx -p software -s mhs_integration -t now.1 -k purge
      Last valid trans id [40825] date [Mon May 10 15:08:43 EDT 2010] author [tculliton] action [promote] msg [Marked this test as broken.  Mary says that as a result of the changes to support multiple shipping pod types this workflow can no longer be used with shuttle pods, and there's no obvious fix for the test.
      [Josh_SmokeTests_Maven3] $ accurev hist -H accurev.kivasystems.com:5050 -fx -p software -s mhs_qa -t now.1 -k add
      No transactions of type [add] in stream [mhs_qa]
      [Josh_SmokeTests_Maven3] $ accurev hist -H accurev.kivasystems.com:5050 -fx -p software -s mhs_qa -t now.1 -k chstream
      [Josh_SmokeTests_Maven3] $ accurev hist -H accurev.kivasystems.com:5050 -fx -p software -s mhs_qa -t now.1 -k co
      No transactions of type [co] in stream [mhs_qa]
      [Josh_SmokeTests_Maven3] $ accurev hist -H accurev.kivasystems.com:5050 -fx -p software -s mhs_qa -t now.1 -k defcomp
      No transactions of type [defcomp] in stream [mhs_qa]
      [Josh_SmokeTests_Maven3] $ accurev hist -H accurev.kivasystems.com:5050 -fx -p software -s mhs_qa -t now.1 -k defunct
      No transactions of type [defunct] in stream [mhs_qa]
      [Josh_SmokeTests_Maven3] $ accurev hist -H accurev.kivasystems.com:5050 -fx -p software -s mhs_qa -t now.1 -k keep
      No transactions of type [keep] in stream [mhs_qa]
      [Josh_SmokeTests_Maven3] $ accurev hist -H accurev.kivasystems.com:5050 -fx -p software -s mhs_qa -t now.1 -k mkstream
      [Josh_SmokeTests_Maven3] $ accurev hist -H accurev.kivasystems.com:5050 -fx -p software -s mhs_qa -t now.1 -k move
      No transactions of type [move] in stream [mhs_qa]
      [Josh_SmokeTests_Maven3] $ accurev hist -H accurev.kivasystems.com:5050 -fx -p software -s mhs_qa -t now.1 -k promote
      [Josh_SmokeTests_Maven3] $ accurev hist -H accurev.kivasystems.com:5050 -fx -p software -s mhs_qa -t now.1 -k purge
      No transactions of type [purge] in stream [mhs_qa]
      Last valid trans id [39140] date [Tue May 04 12:36:24 EDT 2010] author [fbarnaby] action [promote] msg [Merged to accept mhs_qa's version strings (8.3.0-SNAPSHOT).
      [Josh_SmokeTests_Maven3] $ accurev hist -H accurev.kivasystems.com:5050 -fx -p software -s mhs -t now.1 -k add
      No transactions of type [add] in stream [mhs]
      [Josh_SmokeTests_Maven3] $ accurev hist -H accurev.kivasystems.com:5050 -fx -p software -s mhs -t now.1 -k chstream
      [Josh_SmokeTests_Maven3] $ accurev hist -H accurev.kivasystems.com:5050 -fx -p software -s mhs -t now.1 -k co
      No transactions of type [co] in stream [mhs]
      [Josh_SmokeTests_Maven3] $ accurev hist -H accurev.kivasystems.com:5050 -fx -p software -s mhs -t now.1 -k defcomp
      No transactions of type [defcomp] in stream [mhs]
      [Josh_SmokeTests_Maven3] $ accurev hist -H accurev.kivasystems.com:5050 -fx -p software -s mhs -t now.1 -k defunct
      No transactions of type [defunct] in stream [mhs]
      [Josh_SmokeTests_Maven3] $ accurev hist -H accurev.kivasystems.com:5050 -fx -p software -s mhs -t now.1 -k keep
      No transactions of type [keep] in stream [mhs]
      [Josh_SmokeTests_Maven3] $ accurev hist -H accurev.kivasystems.com:5050 -fx -p software -s mhs -t now.1 -k mkstream
      [Josh_SmokeTests_Maven3] $ accurev hist -H accurev.kivasystems.com:5050 -fx -p software -s mhs -t now.1 -k move
      No transactions of type [move] in stream [mhs]
      [Josh_SmokeTests_Maven3] $ accurev hist -H accurev.kivasystems.com:5050 -fx -p software -s mhs -t now.1 -k promote
      [Josh_SmokeTests_Maven3] $ accurev hist -H accurev.kivasystems.com:5050 -fx -p software -s mhs -t now.1 -k purge
      No transactions of type [purge] in stream [mhs]
      Last valid trans id [38564] date [Mon May 03 10:57:10 EDT 2010] author [fbarnaby] action [promote] msg [Promoted for 10.2. release.
      [Josh_SmokeTests_Maven3] $ accurev hist -H accurev.kivasystems.com:5050 -fx -p software -s software -t now.1 -k add
      No transactions of type [add] in stream [software]
      [Josh_SmokeTests_Maven3] $ accurev hist -H accurev.kivasystems.com:5050 -fx -p software -s software -t now.1 -k chstream
      No transactions of type [chstream] in stream [software]
      [Josh_SmokeTests_Maven3] $ accurev hist -H accurev.kivasystems.com:5050 -fx -p software -s software -t now.1 -k co
      No transactions of type [co] in stream [software]
      [Josh_SmokeTests_Maven3] $ accurev hist -H accurev.kivasystems.com:5050 -fx -p software -s software -t now.1 -k defcomp
      No transactions of type [defcomp] in stream [software]
      [Josh_SmokeTests_Maven3] $ accurev hist -H accurev.kivasystems.com:5050 -fx -p software -s software -t now.1 -k defunct
      No transactions of type [defunct] in stream [software]
      [Josh_SmokeTests_Maven3] $ accurev hist -H accurev.kivasystems.com:5050 -fx -p software -s software -t now.1 -k keep
      No transactions of type [keep] in stream [software]
      [Josh_SmokeTests_Maven3] $ accurev hist -H accurev.kivasystems.com:5050 -fx -p software -s software -t now.1 -k mkstream
      [Josh_SmokeTests_Maven3] $ accurev hist -H accurev.kivasystems.com:5050 -fx -p software -s software -t now.1 -k move
      No transactions of type [move] in stream [software]
      [Josh_SmokeTests_Maven3] $ accurev hist -H accurev.kivasystems.com:5050 -fx -p software -s software -t now.1 -k promote
      No transactions of type [promote] in stream [software]
      [Josh_SmokeTests_Maven3] $ accurev hist -H accurev.kivasystems.com:5050 -fx -p software -s software -t now.1 -k purge
      No transactions of type [purge] in stream [software]
      Last valid trans id [1] date [Tue Jan 05 04:32:18 EST 2010] author [jpollak] action [mkstream] msg []
      [Josh_SmokeTests_Maven3] $ accurev hist -H accurev.kivasystems.com:5050 -fx -a -s mhs_Josh -t "2010/05/10 17:33:01-2010/05/10 15:13:34"
      Changelog calculated successfully.
      Starting xvnc
      [Josh_SmokeTests_Maven3] $ vncserver :11
      
      New 'X' desktop is renegadeVm2:11
      
      Starting applications specified in /home/hudson/.vnc/xstartup
      Log file is /home/hudson/.vnc/renegadeVm2:11.log
      
      [Josh_SmokeTests_Maven3] $ /home/hudson/tools/Maven_3.0-alpha-7/bin/mvn -f mhs/pom.xml -DACCUREV_STREAM=mhs_Josh -DACCUREV_LAST_TRANSACTION=${ACCUREV_LAST_TRANSACTION} -cpu -U -Dskipit -Dsmoketest=true clean test
      [INFO] Scanning for projects...
      [ERROR] The build could not read 1 project -> [Help 1]
      [ERROR]   The project com.kiva:mhs:8.3.0-SNAPSHOT (/home/hudson/workspace/Josh_SmokeTests_Maven3/mhs/pom.xml) has 1 error
      [ERROR]     Resolving expression: '${ACCUREV_LAST_TRANSACTION}': Detected the following recursive expression cycle: [ACCUREV_LAST_TRANSACTION] -> [Help 2]
      [ERROR] 
      [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
      [ERROR] Re-run Maven using the -X switch to enable full debug logging.
      [ERROR] 
      [ERROR] For more information about the errors and possible solutions, please read the following articles:
      [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
      [ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/InterpolationCycleException
      

            Assignee:
            Joshua Sherwood
            Reporter:
            jpollak
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: