Skip to content

Show execution time even if there was an error! #18

Closed

Description

@hansgru

Please show the execution time even if an error happens, since this can happen pretty late in the execution process.

Activity

  1. aadrian commented on May 30, 2015

    @aadrian

    +1

  2. ejboy commented on Oct 21, 2026

    @ejboy
    Member

    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.

  3. added this to the 1.7.0 milestone on Oct 21, 2026
  4. ejboy commented on Oct 21, 2026

    @ejboy
    Member

    Verified as implemented in 4b2d8b4.

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions