Skip to content

feat: initialize field trials from command line arguments - #28305

Merged
zcbenz merged 1 commit into
electron:masterfrom
saghul:init-field-trials
Mar 26, 2021
Merged

zcbenz merged 1 commit into
electron:masterfrom
saghul:init-field-trials

Conversation

@saghul

@saghul saghul commented Mar 20, 2021 •

Copy link
Copy Markdown
Contributor

Fixes: #27877

Description of Change

Refs: #27877

Initializes field trials so Electron applications can opt-in to trialing specific in-development features. This is quite used in the WebRTC part for instance. Once such field trial is Opus audio redundancy. This PR facilitates testing that.

Checklist

Release Notes

Notes: Added ability to enable field trials.

@electron-cation electron-cation Bot added the new-pr 🌱 PR opened recently label Mar 20, 2021
@saghul
saghul force-pushed the init-field-trials branch 2 times, most recently from 124fc04 to 8854b69 Compare March 20, 2021 21:33
@saghul

saghul commented Mar 20, 2021

Copy link
Copy Markdown
Contributor Author

/ccc @nornagon @codebytere

I think it got everything covered, please take a look when you can. Didn't add any tests because I'm not sure how to, since trials come and go...

@saghul
saghul marked this pull request as ready for review March 20, 2021 21:42
@saghul

saghul commented Mar 20, 2021

Copy link
Copy Markdown
Contributor Author

Not sure how the test failures are related to this PR, looks like they aren't?

@saghul
saghul force-pushed the init-field-trials branch from 8854b69 to 33ac8b6 Compare March 22, 2021 16:21
@nornagon nornagon added the semver/patch backwards-compatible bug fixes label Mar 22, 2021
@electron-cation electron-cation Bot removed the new-pr 🌱 PR opened recently label Mar 22, 2021
@nornagon

Copy link
Copy Markdown
Contributor

Labelling this semver/patch though arguably it is semver/minor, because this change is small and I think it's kind of a bug that we didn't already support it.

@nornagon nornagon left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR :)

@saghul

saghul commented Mar 22, 2021

Copy link
Copy Markdown
Contributor Author

Labelling this semver/patch though arguably it is semver/minor, because this change is small and I think it's kind of a bug that we didn't already support it.

Lovely! Is there a chance this can be backported to the 12.x branch?

@nornagon

Copy link
Copy Markdown
Contributor

@saghul i've targeted it for 11 through 13, so hopefully it should land in all those branches without issue :)

@saghul

saghul commented Mar 22, 2021

Copy link
Copy Markdown
Contributor Author

Excellent!

@zcbenz zcbenz left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you also document it in docs/api/command-line-switches.md.

@saghul
saghul force-pushed the init-field-trials branch from 33ac8b6 to e188826 Compare March 24, 2021 09:57
@saghul

saghul commented Mar 24, 2021

Copy link
Copy Markdown
Contributor Author

Can you also document it in docs/api/command-line-switches.md.

Good point, just added some docs!

@zcbenz
zcbenz merged commit 2632564 into electron:master Mar 26, 2021
@release-clerk

release-clerk Bot commented Mar 26, 2021 •

Copy link
Copy Markdown

Release Notes Persisted

Added ability to enable field trials through the command line.

@trop

trop Bot commented Mar 26, 2021

Copy link
Copy Markdown
Contributor

I have automatically backported this PR to "11-x-y", please check out #28401

@trop trop Bot removed the target/11-x-y label Mar 26, 2021
@trop

trop Bot commented Mar 26, 2021

Copy link
Copy Markdown
Contributor

I have automatically backported this PR to "13-x-y", please check out #28402

@trop

trop Bot commented Mar 26, 2021

Copy link
Copy Markdown
Contributor

I have automatically backported this PR to "12-x-y", please check out #28403

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

Labels

semver/patch backwards-compatible bug fixes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The force-fieldtrials command line swtich does not work.

4 participants