Skip to content

feat: release build support - #282

Open
danilasar wants to merge 2 commits into
picodata:masterfrom
danilasar:dgrigorev/release-build
Open

danilasar wants to merge 2 commits into
picodata:masterfrom
danilasar:dgrigorev/release-build

Conversation

@danilasar

Copy link
Copy Markdown
Collaborator

Closes #275

Comment thread picotest/src/internal.rs Outdated
const ENV_PICODATA_PATH: &str = "PICODATA_PATH";
const ENV_TOPOLOGY_PATH: &str = "TOPOLOGY_PATH";

pub fn use_release_build() -> bool {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

выбирать режим debug / release не должен управляться извне

надо бы перенести в picotest_helpers и вызывать use_release при создании кластера в new как дефолтное поведение

Comment thread picotest_helpers/src/lib.rs Outdated
let picodata_admin = Command::new("picodata")
.arg("admin")
.arg(self.socket_path.clone())
.arg(self.socket_path.file_name().unwrap())

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

еще вероятно file_name тут всегда admin.sock, для которой у нас есть константа ADMIN_SOCKET_NAME

тогда нам необходимо в impl From for PicotestInstance сохранять socket_dir

в таком случае должны полностью избавиться от unwrap

Comment thread picotest_helpers/src/lib.rs Outdated
self
}

pub fn use_release(mut self, is_enabled: bool) -> Self {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

после переноса поиска профиля можно будет удалить, не вижу кейсов для смены сборки в процессе тестирования

@danilasar
danilasar force-pushed the dgrigorev/release-build branch from 54a31bf to d47f246 Compare October 22, 2026 12:15
@danilasar
danilasar force-pushed the dgrigorev/release-build branch from d47f246 to 1c1e6a5 Compare October 23, 2026 20:11
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.

Support plugins release build

2 participants