Closed Bug 1363509 Opened 7 years ago Closed 7 years ago

Add support for running BMO Docker container to hgdev environment

Categories

(Developer Services :: General, task)

task
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: gps, Assigned: gps)

References

Details

Attachments

(9 files)

Bug 1360062 tracked implementing a new, minimal development environment for Mercurial extensions and hooks. The environment purposefully didn't support Docker because we were aiming for simplicity by default.

A handful of Mercurial extensions do rely on Docker for testing. With the exception of MozReview and hg.mo-specific extensions, most Docker dependencies are on the bmoweb container. So let's add optional support for creating an hgdev environment with support for running the bmoweb Docker container.
Comment on attachment 8866119 [details]
mozautomation: move bugzilla xmlrpc transports code from mozreview (bug 1363509);

https://reviewboard.mozilla.org/r/137720/#review152706
Attachment #8866119 - Flags: review?(glob) → review+
Comment on attachment 8866120 [details]
testing: consistently name bmoweb environment variable (bug 1363509);

https://reviewboard.mozilla.org/r/137722/#review152710
Attachment #8866120 - Flags: review?(glob) → review+
Comment on attachment 8866121 [details]
testing: look for Docker image environment variables (bug 1363509);

https://reviewboard.mozilla.org/r/137724/#review152712
Attachment #8866121 - Flags: review?(glob) → review+
Comment on attachment 8866122 [details]
testing: delay import modules to facilitate wider use (bug 1363509);

https://reviewboard.mozilla.org/r/137726/#review152718
Attachment #8866122 - Flags: review?(glob) → review+
Comment on attachment 8866123 [details]
testing: utility function to find path to Mercurial (bug 1363509);

https://reviewboard.mozilla.org/r/137728/#review152720

::: testing/vcttesting/vctutil.py:16
(Diff revision 3)
>  
>  HERE = os.path.abspath(os.path.dirname(__file__))
>  ROOT = os.path.normpath(os.path.join(HERE, '..', '..'))
>  
>  
> +def hg_path():

hg_path implies it returns a path; however this returns the hg executable; perhaps `hg_executable` or `hg_bin` would be clearer.
Attachment #8866123 - Flags: review?(glob) → review-
Comment on attachment 8866124 [details]
testing: convert argument parser to sub-parsers (bug 1363509);

https://reviewboard.mozilla.org/r/137730/#review152722
Attachment #8866124 - Flags: review?(glob) → review+
Comment on attachment 8866125 [details]
testing: refactor code for determining docker requirements (bug 1363509);

https://reviewboard.mozilla.org/r/137732/#review152742
Comment on attachment 8866125 [details]
testing: refactor code for determining docker requirements (bug 1363509);

https://reviewboard.mozilla.org/r/137732/#review152744
Attachment #8866125 - Flags: review?(glob) → review+
Comment on attachment 8866126 [details]
testing: filter docker requirements by what's allowed by virtualenv (bug 1363509);

https://reviewboard.mozilla.org/r/137734/#review152750
Attachment #8866126 - Flags: review?(glob) → review+
Comment on attachment 8866127 [details]
testing: support BMO Docker container in hgdev environment (bug 1363509);

https://reviewboard.mozilla.org/r/137736/#review152752

::: testing/vcttesting/environment.py:176
(Diff revision 3)
> +    from .docker import (
> +        Docker,
> +        params_from_env,
> +    )
> +
> +    state_path = os.path.join(ROOT, '.dockerstate')

.dockerstate is a file, so this should be `state_file`
Attachment #8866127 - Flags: review?(glob) → review+
Comment on attachment 8866123 [details]
testing: utility function to find path to Mercurial (bug 1363509);

https://reviewboard.mozilla.org/r/137728/#review152756
Attachment #8866123 - Flags: review- → review+
Pushed by gszorc@mozilla.com:
https://hg.mozilla.org/hgcustom/version-control-tools/rev/75da877a54b8
mozautomation: move bugzilla xmlrpc transports code from mozreview ; r=glob
https://hg.mozilla.org/hgcustom/version-control-tools/rev/acd6b2e56b9f
testing: consistently name bmoweb environment variable ; r=glob
https://hg.mozilla.org/hgcustom/version-control-tools/rev/4868036bfc07
testing: look for Docker image environment variables ; r=glob
https://hg.mozilla.org/hgcustom/version-control-tools/rev/99b79d6cd116
testing: delay import modules to facilitate wider use ; r=glob
https://hg.mozilla.org/hgcustom/version-control-tools/rev/08110cd74a21
testing: utility function to find path to Mercurial ; r=glob
https://hg.mozilla.org/hgcustom/version-control-tools/rev/f641f9776c17
testing: convert argument parser to sub-parsers ; r=glob
https://hg.mozilla.org/hgcustom/version-control-tools/rev/e18b398b929f
testing: refactor code for determining docker requirements ; r=glob
https://hg.mozilla.org/hgcustom/version-control-tools/rev/360d6eeed6e9
testing: filter docker requirements by what's allowed by virtualenv ; r=glob
https://hg.mozilla.org/hgcustom/version-control-tools/rev/a89ed437ebe3
testing: support BMO Docker container in hgdev environment ; r=glob
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: