Skip to content

Cherry-pick #980#981

Merged
agarciamontoro merged 1 commit intorelease-1.33from
cherry-pick.980
Mar 22, 2026
Merged

Cherry-pick #980#981
agarciamontoro merged 1 commit intorelease-1.33from
cherry-pick.980

Conversation

@agarciamontoro
Copy link
Copy Markdown
Member

Summary

Cherry-pick #980 into release-1.33

Ticket Link

https://mattermost.atlassian.net/browse/MM-67954

…g/config.json when deploying from GitHub release (#980)

* Moved configuration accessors to a new file structure under `config/`

* Refactor logger tests to use updated config accessors path and mock node modules correctly

* Moved LogSettings in browsercontroller.json to manage console and file logging from config.json

* Update default logging settings in BrowserLogSettings to enable console logging and set console log level to debug

* Add browser controller configuration validation and setup for agent tests

- Introduced a new `setupAgentType` function to streamline the setup of agent types in tests.
- Updated `TestIsBrowserAgentInstance` and `TestBrowserAgentConfigValidation` to utilize the new setup function.
- Enhanced the `createLoadAgentHandler` to validate the `browsercontroller.json` configuration before creating browser agents.
- Added logic in the Terraform agent configuration to upload the `browsercontroller.json` to browser agent instances, ensuring valid configurations are used during load tests.

* fix test

* Fix test with valid config file

* Fix typo in comment

* Fix typo in docs

* Use t.Chdir and t.Setenv instead of os's

This takes care of cleanup automatically and marks the test as
not suitable for test parallelism.

* Use t.TempDir instead of os.MkdirTemp

The testing version takes care of cleanup automatically.

---------

Co-authored-by: Alejandro García Montoro <alejandro.garciamontoro@gmail.com>
@agarciamontoro agarciamontoro changed the title [MM-67954] Browser agent ltbrowserapi fails on startup: missing confi… Cherry-pick #980 Mar 20, 2026
@agarciamontoro agarciamontoro merged commit ccc1578 into release-1.33 Mar 22, 2026
1 check passed
@agarciamontoro agarciamontoro deleted the cherry-pick.980 branch March 22, 2026 16:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants