-
Notifications
You must be signed in to change notification settings - Fork 94
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
Enh 2451 skip conditionals #2569
Enh 2451 skip conditionals #2569
Conversation
Added a boolean environment variable which enables or disables running the aws integration tests.
Adds boolean environment variable so that user can toggle off the Azure integration test.
fixed spelling
adds boolean environment variable so that user can toggle off the Digital Ocean integration test.
Adds boolean environment variable so that user can toggle off the GCP integration test.
removed white space
removed white spaces
removing white space
removed trailing white spaces
Trim trailing whitespaces
trim trailing whitespaces
trim trailing whitespaces
Trim Trailing Whitespace
Hi, @BrianCashProf. All looks good, but I am curious about the extra steps of I don't see a problem with that, but if possible, we could instead use the env you set up in the beginning to control it directly, e.g.: test-aws-integration:
runs-on: ubuntu-latest
if: env.NO_PROVIDER_CREDENTIALS_aws == "false"
permissions:
id-token: write |
That was my initial idea, but the Environment variables were not accessible when doing a boolean at the first level of the job. |
Indeed, it looks like the available contexts for the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, I don't see any problems with the extra job requirement, as its default allows backward compatibility already. Also, I like the fact that this will grant forks better stability.
@BrianCashProf, sorry for being pedantic here, but could you add a small comment in the new job explaining why it's in there? This way, we can easily track that in future maintenance of these files. It could be something like: # Used to skip cloud provider checks due to "jobs" not supporting {{ env }} variables contexts |
Added comment to aws test.
Added comment
Added comment
added comment
revised comment
revised comment
revised comment
@viniciusdc No worries! That phrasing looks good to me. I've added the comments. |
removed whitespace
removed whitespace
trimmed whitespace
trimmed whitespace
Reference Issues or PRs
What does this implement/fix?
Put a
x
in the boxes that applyTesting
Any other comments?
This PR is related to the issue stated in ENH: #2451
I have added a job to the integration test related github actions. This job acts as a mediary for a boolean environment variable and a conditional statement added to integration test job at it's top level. This was made so that a user with a fork of nebari who do not have access to the credentials for the cloud resources the job needs.
This method was chosen for the following reasons: