Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dev/sol/hololib #634

Merged
merged 8 commits into from
Nov 11, 2024
Merged

Dev/sol/hololib #634

merged 8 commits into from
Nov 11, 2024

Conversation

SoloJacobs
Copy link
Contributor

No description provided.

@SoloJacobs SoloJacobs requested a review from jherbel November 7, 2024 17:15
src/config.rs Outdated Show resolved Hide resolved
src/bin/scheduler/internal_config.rs Outdated Show resolved Hide resolved
src/environment.rs Show resolved Hide resolved
src/bin/scheduler/setup/rcc.rs Outdated Show resolved Hide resolved
src/bin/scheduler/setup/directories.rs Outdated Show resolved Hide resolved
src/bin/scheduler/setup/directories.rs Outdated Show resolved Hide resolved
src/environment.rs Show resolved Hide resolved
src/bin/scheduler/setup/rcc.rs Outdated Show resolved Hide resolved
src/session.rs Show resolved Hide resolved
src/bin/scheduler/setup/directories.rs Outdated Show resolved Hide resolved
@jherbel
Copy link
Contributor

jherbel commented Nov 8, 2024

Once we are finished here, we will re-visit our internal datastructures. It seems that we need something like

Vec<(Plan, RCCConfig)

in multiple places. So it makes sense to at least consider an adjustment here, something RCCPlan. We will see.

@SoloJacobs SoloJacobs force-pushed the dev/sol/hololib branch 2 times, most recently from 75bd0f7 to 1486868 Compare November 10, 2024 20:41
@SoloJacobs SoloJacobs requested a review from jherbel November 10, 2024 20:41
@jherbel
Copy link
Contributor

jherbel commented Nov 11, 2024

As discussed: We will merge this to have the functionality in place. In a follow-up step, we will investigate options to re-work our setup steps. The current data structures are well-suited for environment building and plan scheduling (per-plan operations), but they make for example per-session operations cumbersome.

This change sets the ROBOCORP_HOME environment variable during:
* setup (various rcc configuration calls,
* build (rcc task script),
* while executing tests.

For the `rcc configuration longpaths --enable` step this is not strictly
necessary, but done for consistency anyway.

CMK-19971
Previously, the scheduler assumed that sufficient permissions where
already available for users to run their tests.

The base directory and its subdirectories are now created during setup
with sufficient permissions for Windows.

CMK-19971
Let's you know which variable is missing

CMK-20046
...robocorp homes. We might need add a `bazel` cache.

CMK-19971
If a directory belongs to a user, then he may change the permissions of
that directory. If a new directory is created, it will always belong to
the user, that created it. This change affects use cases, where a
robocorp_home_base was configured, which already exists (on Windows).

We don't want the user (which owned the robocorp_home_base before the
scheduler is started) to be able to modify permissions on newly created
`ROBOCORP_HOME` directories. However, this change cannot protect against
already existing directories, which have malicious code inside them (or
gave full access to a different user).

CMK-19971
@SoloJacobs SoloJacobs merged commit 3067501 into main Nov 11, 2024
23 checks passed
@SoloJacobs SoloJacobs deleted the dev/sol/hololib branch November 11, 2024 10:51
@github-actions github-actions bot locked and limited conversation to collaborators Nov 11, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants