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

Testing pull request #3

Closed
wants to merge 10 commits into from
Closed

Testing pull request #3

wants to merge 10 commits into from

Conversation

nirs
Copy link
Owner

@nirs nirs commented May 1, 2024

No description provided.

Instead of horrible one line json, try to check if the pull request
author is a member of the organization[1].

[1] https://michaelheap.com/github-actions-check-permission/

Signed-off-by: Nir Soffer <nsoffer@redhat.com>
Signed-off-by: Nir Soffer <nsoffer@redhat.com>
nirs added 2 commits May 2, 2024 00:46
When using CI, we want to use a fresh venv for every build so bad venv
created by one job does not break the next job, or bad change in a PR is
not hidden by good venv created by a previous job.

When using local development, you may want to have venv per ramen source
directory. One case is using git worktree to have multiple ramen trees.
With this change you can create a venv per ramen worktree.

Example usage:

    hack/make-venv .venv/ramen

Since this is the expected usage, add this path to gitignore, so using
`git clean dxf` does not remove the directory.

Signed-off-by: Nir Soffer <nsoffer@redhat.com>
Create venv inside the ramen checkout directory to have fresh venv for
every build.

Signed-off-by: Nir Soffer <nsoffer@redhat.com>
We want to use the same environment for each runner. To test different
environment, we will have multiple runners.

Signed-off-by: Nir Soffer <nsoffer@redhat.com>
After adding a label to the runner at:
https://github.com/nirs/ramen/settings/actions/runners/22

We can add the label to the workflow to make it run only on runner using
this label. This allows testing PR using multiple workflows in parallel
on multiple runners.

Signed-off-by: Nir Soffer <nsoffer@redhat.com>
Instead of repeating the path to the env file and hard coding the
environment name, add env.ENV_FILE and env.ENV_NAME.

Also always run from the test directory for consistency when using drenv
and ramenctl. This allows using env.ENV_FILE in a simple way.

Signed-off-by: Nir Soffer <nsoffer@redhat.com>
nirs added 3 commits May 2, 2024 02:41
It cannot work since it hard-codes the environment name and
--name-prefix value[1].

[1] RamenDR#1362

Signed-off-by: Nir Soffer <nsoffer@redhat.com>
Signed-off-by: Nir Soffer <nsoffer@redhat.com>
Signed-off-by: Nir Soffer <nsoffer@redhat.com>
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.

1 participant