Page MenuHomeSoftware Heritage

common/utils: Add utility functions to check swh-web run environment
ClosedPublic

Authored by anlambert on Feb 22 2022, 5:09 PM.

Details

Summary

Add functions to check if we are running a development, staging or
production version of swh-web.

Diff Detail

Repository
rDWAPPS Web applications
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

Build has FAILED

Patch application report for D7223 (id=26181)

Rebasing onto c14cfd1b28...

Current branch diff-target is up to date.
Changes applied before test
commit cc5736263984312914af673831932af01f6779eb
Author: Antoine Lambert <anlambert@softwareheritage.org>
Date:   Tue Feb 22 16:26:14 2022 +0100

    common/utils: Add utility functions to check swh-web run environment
    
    Add functions to check if we are running a development, staging or
    production version of swh-web.

Link to build: https://jenkins.softwareheritage.org/job/DWAPPS/job/tests-on-diff/1397/
See console output for more information: https://jenkins.softwareheritage.org/job/DWAPPS/job/tests-on-diff/1397/console

Harbormaster returned this revision to the author for changes because remote builds failed.Feb 22 2022, 5:10 PM
Harbormaster failed remote builds in B27053: Diff 26181!

Build is green

Patch application report for D7223 (id=26181)

Rebasing onto c14cfd1b28...

Current branch diff-target is up to date.
Changes applied before test
commit cc5736263984312914af673831932af01f6779eb
Author: Antoine Lambert <anlambert@softwareheritage.org>
Date:   Tue Feb 22 16:26:14 2022 +0100

    common/utils: Add utility functions to check swh-web run environment
    
    Add functions to check if we are running a development, staging or
    production version of swh-web.

See https://jenkins.softwareheritage.org/job/DWAPPS/job/tests-on-diff/1398/ for more details.

This revision was not accepted when it landed; it landed in state Needs Review.Feb 23 2022, 1:07 PM
This revision was automatically updated to reflect the committed changes.