[MM-64296] Help for AI: Respect env overrides for consoleLevel (#31278)

* respect env overrides for consoleLevel; add tests

* clean up test

* merge conflict

* improve parallelizability

* be better commenting

* better name for fn, comment explaining why we're using it

* empty

* empty

* empty

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
Этот коммит содержится в:
Christopher Poile
2025-06-07 17:35:08 -04:00
коммит произвёл GitHub
родитель efc8094bc2
Коммит c0f1cbf727
3 изменённых файлов: 91 добавлений и 5 удалений

Просмотреть файл

@@ -182,8 +182,8 @@ func UpdateAssetsSubpathFromConfig(config *model.Config) error {
return nil
}
// Similarly, don't rewrite during a CI build, when the assets may not even be present.
if os.Getenv("IS_CI") == "true" {
// Similarly, don't rewrite during a CI build, or a local testing build, when the assets may not even be present.
if os.Getenv("IS_CI") == "true" || os.Getenv("IS_LOCAL_TESTING") == "true" {
mlog.Debug("Skipping update to assets subpath since CI build")
return nil
}