For a release review you only need completed runs. WHERE selects the rows before GROUP BY forms the groups. SUM then adds up the recorded times within each remaining environment.
For runs with status completed, show environment and the sum of duration_seconds as total_seconds. Include each environment with at least one such run.