You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Show execution time even if there was an error! #18
Targeting this for 1.7. Scriptella should report elapsed execution time on failure as well as success, measured up to the failure, while preserving the original error details and failure exit status.
EtlLauncher measures elapsed time with System.nanoTime() and reports it on ETL XML and execute-sql failures, independently of final statistics, while preserving failure status and original error details. The reported interval spans the launcher invocation through executor failure handling (including rollback/cleanup), rather than a structured timestamp captured at the database error.
Regression coverage: EtlLauncherTest.testFailureReportsElapsedTime and SqlLauncherTest.testCommonOptionsBeforeAndAfterCommand cover debug, quiet and no-stat failures, elapsed output, original SQL errors and failure status. Reran both test classes via mvn-lite -pl tools -am -Dtest=EtlLauncherTest,SqlLauncherTest -Dsurefire.failIfNoSpecifiedTests=false test: 22 tests passed, no failures/errors/skips.
Closing the original CLI failure-timing request as completed. Machine-readable outcome/duration reports, embedded API reporting and richer metrics remain in #73; they are not remaining requirements of this issue.
Activity
aadrian commentedon May 30, 2015
+1
ejboy commentedon Oct 21, 2026
Targeting this for 1.7. Scriptella should report elapsed execution time on failure as well as success, measured up to the failure, while preserving the original error details and failure exit status.
Report elapsed execution time on failure (#18)
ejboy commentedon Oct 21, 2026
Verified as implemented in 4b2d8b4.
EtlLaunchermeasures elapsed time withSystem.nanoTime()and reports it on ETL XML andexecute-sqlfailures, independently of final statistics, while preserving failure status and original error details. The reported interval spans the launcher invocation through executor failure handling (including rollback/cleanup), rather than a structured timestamp captured at the database error.Regression coverage:
EtlLauncherTest.testFailureReportsElapsedTimeandSqlLauncherTest.testCommonOptionsBeforeAndAfterCommandcover debug, quiet and no-stat failures, elapsed output, original SQL errors and failure status. Reran both test classes viamvn-lite -pl tools -am -Dtest=EtlLauncherTest,SqlLauncherTest -Dsurefire.failIfNoSpecifiedTests=false test: 22 tests passed, no failures/errors/skips.Closing the original CLI failure-timing request as completed. Machine-readable outcome/duration reports, embedded API reporting and richer metrics remain in #73; they are not remaining requirements of this issue.