-
-
Notifications
You must be signed in to change notification settings - Fork 97
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
Fix a reference to an undefined output in GitHub Actions #718
Fix a reference to an undefined output in GitHub Actions #718
Conversation
📝 Walkthrough📝 WalkthroughWalkthroughThe pull request modifies the Changes
Possibly related PRs
Suggested reviewers
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
.github/workflows/test.yml
Outdated
- '.github/**' | ||
- 'docs/**' | ||
- 'examples/**' | ||
- 'test/**' | ||
- ".github/**" | ||
- "docs/**" | ||
- "examples/**" | ||
- "test/**" |
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.
Oh, sorry. VSCode edited this. I'll revert the change.
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.
Fixed. bb4a99d
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.
Actionable comments posted: 3
📜 Review details
Configuration used: CodeRabbit UI
Review profile: ASSERTIVE
📒 Files selected for processing (1)
- .github/workflows/test.yml (5 hunks)
🧰 Additional context used
🔇 Additional comments (4)
.github/workflows/test.yml (4)
13-16
: Formatting improvement inpaths-ignore
The changes to the
paths-ignore
section improve consistency by using double quotes for all paths. This is a good practice for maintaining uniform YAML formatting.
275-276
: Consistent Terraform setup inmock
jobThe changes to the Terraform setup in the
mock
job are consistent with those in thelocalstack
job. This maintains uniformity across the workflow, which is a good practice.
Line range hint
1-332
: Overall assessment of changesThe changes in this file align well with the PR objectives and improve the workflow's maintainability:
- Introduction of
TERRAFORM_VERSION
as an environment variable centralizes version management.- Consistent use of this variable across different jobs enhances maintainability.
- Explicit setting of
terraform_wrapper: false
in most jobs aligns with the objective to stop installing the Terraform wrapper.- Formatting improvements and enhanced Docker linting configuration contribute to better code quality.
These changes should make future updates easier and improve the overall reliability of the workflow.
165-166
: Updated Terraform setup inlocalstack
jobThe changes to the Terraform setup step are good:
- Using
${{ env.TERRAFORM_VERSION }}
centralizes version management.- Setting
terraform_wrapper: false
aligns with the PR objective to stop installing the Terraform wrapper.To ensure these changes don't introduce any issues, let's verify the Terraform setup in other jobs:
✅ Verification successful
Terraform setup verified across all jobs
All Terraform configuration steps correctly utilize the
${{ env.TERRAFORM_VERSION }}
and haveterraform_wrapper
set tofalse
as intended.🏁 Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Check if all Terraform setup steps use the environment variable and disable the wrapper grep -n "terraform_version:" .github/workflows/test.yml grep -n "terraform_wrapper:" .github/workflows/test.ymlLength of output: 414
terraform_version: ${{ env.TERRAFORM_VERSION }} | ||
terraform_wrapper: false |
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.
🧹 Nitpick (assertive)
Updated Terraform version in lint
job
The change to use ${{ env.TERRAFORM_VERSION }}
in the lint
job is good, maintaining consistency with other jobs.
Consider explicitly setting terraform_wrapper: false
here as well, to maintain full consistency with the other jobs and the PR objectives.
671e3d8
to
bb4a99d
Compare
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.
Actionable comments posted: 1
📜 Review details
Configuration used: CodeRabbit UI
Review profile: ASSERTIVE
📒 Files selected for processing (1)
- .github/workflows/test.yml (4 hunks)
🧰 Additional context used
🔇 Additional comments (4)
.github/workflows/test.yml (4)
165-166
: Approve changes in the docker job configurationThe updates to use
${{ env.TERRAFORM_VERSION }}
for the Terraform version and explicitly settingterraform_wrapper: false
are good improvements. These changes align with the PR objectives and enhance consistency across the workflow.
275-276
: Approve changes in the mock job configurationThe updates to use
${{ env.TERRAFORM_VERSION }}
for the Terraform version and explicitly settingterraform_wrapper: false
in the mock job are good improvements. These changes maintain consistency with other jobs and align with the PR objectives.
317-318
: Approve changes in the lint job configurationThe updates to use
${{ env.TERRAFORM_VERSION }}
for the Terraform version and explicitly settingterraform_wrapper: false
in the lint job are good improvements. These changes maintain consistency with other jobs and align with the PR objectives. The suggestion from a previous review to setterraform_wrapper: false
has been addressed.
Line range hint
1-338
: Summary of changes to the workflow fileThe modifications to
.github/workflows/test.yml
consistently implement the following improvements:
- Introduction of a centralized
TERRAFORM_VERSION
environment variable.- Usage of this variable across different jobs (docker, mock, and lint).
- Explicit setting of
terraform_wrapper: false
in relevant jobs.These changes align well with the PR objectives, enhancing maintainability and consistency across the workflow. The updates should make it easier to manage Terraform versions and configurations in the future.
env: | ||
TERRAFORM_VERSION: "1.9.7" | ||
|
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.
🧹 Nitpick (assertive)
Approve the addition of TERRAFORM_VERSION environment variable
The introduction of the TERRAFORM_VERSION
environment variable is a good improvement. It centralizes the Terraform version definition, making it easier to update across the workflow.
Consider adding a comment explaining why version 1.9.7 was chosen, to provide context for future updates.
These changes were released in v1.90.0. |
what
atmos/.github/workflows/test.yml
Line 312 in 6439a64
The step
config
is not found.This bug was added in #612 .
#717 (comment)
By default
hashicorp/setup-terraform
installs a wrapper of Terraform to output Terraform stdout and stderr as step's outputs.But we don't need them, so we shouldn't install the wrapper.
https://github.com/hashicorp/setup-terraform
why
references
Summary by CodeRabbit
TERRAFORM_VERSION
for version management.