Bug 221711

Summary: [Flatpak SDK] Support multiple builds running at the same time
Product: WebKit Reporter: Lauro Moura <lmoura>
Component: Tools / TestsAssignee: Lauro Moura <lmoura>
Status: RESOLVED FIXED    
Severity: Normal CC: aboya, bugs-noreply, pnormand, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=220781
https://bugs.webkit.org/show_bug.cgi?id=221070
https://bugs.webkit.org/show_bug.cgi?id=221757
Attachments:
Description Flags
Patch none

Description Lauro Moura 2021-02-10 12:42:06 PST
As part of Flatpak 1.10 changes regarding environment variables, the Flatpak SDK currently creates a `WebKitBuild/flatpak-env.json` variable to pass the needed environment variables to the webkit-bwrap wrapper. One such variable is  WEBKIT_BUILD_DIR_BIND_MOUNT, which is used to bindmount the WebKitBuild/<PORT>/<CONFIG> directory into WebKitBuild/<CONFIG> inside the sanbox.

While this has been working quite well when running *single* commands, this approach has some limitations. For example, running in parallel GTK and WPE MiniBrowsers. Each command would generate a different flatpak-env.json with its own config.

Related revisions and bugs:

* Initial flatpak-env.json patch: r271938 / bug220781
* Followup fix avoiding early deletion: r272018 / bug221070
Comment 1 Lauro Moura 2021-02-10 20:44:48 PST
Created attachment 419943 [details]
Patch
Comment 2 EWS 2021-02-11 01:29:29 PST
Committed r272712: <https://commits.webkit.org/r272712>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 419943 [details].
Comment 3 Radar WebKit Bug Importer 2021-02-11 01:30:19 PST
<rdar://problem/74225666>