Skip to content

Commit

Permalink
Merge branch 'main' of github.com:terramate-io/terramate into i4k-par…
Browse files Browse the repository at this point in the history
…allel-generate
  • Loading branch information
i4ki committed Oct 23, 2024
2 parents 04bd53c + 3e26d85 commit 63c22da
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 17 deletions.
16 changes: 7 additions & 9 deletions .github/workflows/ci-sync-deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@ on:
push:
branches:
- main
- v0.4.x
- v0.6.x
- v0.9.x
- v*.x # backporting branches.

jobs:
build_test:
Expand Down Expand Up @@ -68,11 +66,11 @@ jobs:

- name: List changed Go packages
id: list_go_packages
run: terramate list --tags golang --changed
run: terramate list --tags golang --changed --git-change-base HEAD^

- name: List changed e2e tests packages
id: list_e2e_packages
run: terramate list --tags e2etests --changed
run: terramate list --tags e2etests --changed --git-change-base HEAD^

### Linting

Expand All @@ -98,14 +96,14 @@ jobs:
### Run the Terramate tests and create a Cloud deployment

- name: Run Terraform deployment on changed packages
if: ${{ steps.list_go_packages.outputs.stdout || steps.list_e2e_packages }}
if: ${{ steps.list_go_packages.outputs.stdout }}
timeout-minutes: 30
run: terramate script run --changed --tags golang --continue-on-error --target ${{ matrix.os.name }}-go-packages --parallel 12 deploy
run: terramate script run --changed --git-change-base HEAD^ --tags golang --continue-on-error --target ${{ matrix.os.name }}-go-packages --parallel 12 deploy
env:
GITHUB_TOKEN: ${{ github.token }}
TM_TEST_TERRAFORM_REQUIRED_VERSION: "1.7.5"

- name: Run all e2e tests Preview if any Go packages changed
- name: Run all e2e tests if any Go packages changed
if: ${{ steps.list_go_packages.outputs.stdout }}
timeout-minutes: 30
run: terramate script run --tags e2etests --target ${{ matrix.os.name }}-e2e --parallel 12 deploy
Expand All @@ -116,7 +114,7 @@ jobs:
- name: Else only run the changed e2e packages
if: ${{ !steps.list_e2e_packages.outputs.stdout && steps.list_e2e_packages.outputs.stdout }}
timeout-minutes: 30
run: terramate script run --tags e2etests --changed --target "${{ matrix.os.name }}-e2e" --parallel 12 deploy
run: terramate script run --tags e2etests --changed --git-change-base HEAD^ --target "${{ matrix.os.name }}-e2e" --parallel 12 deploy
env:
GITHUB_TOKEN: ${{ github.token }}
TM_TEST_TERRAFORM_REQUIRED_VERSION: "1.7.5"
Expand Down
11 changes: 7 additions & 4 deletions .github/workflows/ci-sync-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,15 +62,18 @@ jobs:
- name: make generate
run: make generate

- name: fetch base ref (${{ github.base_ref }})
run: git fetch origin ${{ github.base_ref }}

### Check for changed stacks

- name: List changed Go packages
id: list_go_packages
run: terramate list --tags golang --changed
run: terramate list --tags golang --changed --git-change-base origin/${{ github.base_ref }}

- name: List changed e2e tests packages
id: list_e2e_packages
run: terramate list --tags e2etests --changed
run: terramate list --tags e2etests --changed --git-change-base origin/${{ github.base_ref }}

### Linting

Expand Down Expand Up @@ -101,7 +104,7 @@ jobs:
- name: Run Preview on changed Go packages
if: ${{ steps.list_go_packages.outputs.stdout }}
timeout-minutes: 30
run: terramate script run --changed --tags golang --target "${{ matrix.os.name }}-go-packages" --parallel 12 preview
run: terramate script run --changed --git-change-base origin/${{ github.base_ref }} --tags golang --target "${{ matrix.os.name }}-go-packages" --parallel 12 preview
env:
GITHUB_TOKEN: ${{ github.token }}
TM_TEST_TERRAFORM_REQUIRED_VERSION: "1.7.5"
Expand All @@ -117,7 +120,7 @@ jobs:
- name: Else only run the changed e2e packages
if: ${{ !steps.list_e2e_packages.outputs.stdout && steps.list_e2e_packages.outputs.stdout }}
timeout-minutes: 30
run: terramate script run --tags e2etests --changed --target "${{ matrix.os.name }}-e2e" --parallel 12 preview
run: terramate script run --tags e2etests --changed --git-change-base origin/${{ github.base_ref }} --target "${{ matrix.os.name }}-e2e" --parallel 12 preview
env:
GITHUB_TOKEN: ${{ github.token }}
TM_TEST_TERRAFORM_REQUIRED_VERSION: "1.7.5"
Expand Down
5 changes: 2 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,23 +22,22 @@ Given a version number `MAJOR.MINOR.PATCH`, we increment the:

## Unreleased

## v0.11.0

### Added

- Add `--enable-change-detection=<options>` and `--disable-change-detection=<options>` to the commands: `terramate list`, `terramate run` and `terramate script run`.
- These flags overrides both the default change detection strategy and the configuration in `terramate.config.change_detection.git` block.
- Add support for using `TM_ARG_*` environment variables to configure cli commands.
Note: This is an incremental change. Only global flags and `terramate run` flags were added for now.
- For example: Use `TM_ARG_CHDIR=stacks/prod TM_ARG_RUN_REVERSE=1 terramate run -- terraform apply` to run from inside `stacks/prod` and with reversed execution order (which is the same as `terramate --chdir stacks/prod run --reverse -- terraform apply`).
- Add support for dot (`.`) in the tag syntax.
- Now you can add tags like `v1.0.0-abc_xyz`

### Changed

- **(Breaking change)** The `terramate list --changed` now considers *untracked* and * uncommitted* files for detecting changed stacks.
- This behavior can be turned off by `terramate.config.change_detection.git.untracked = "off"` and `terramate.config.change_detection.git.uncommitted = "off"`.
- **(Breaking change)** Remove the deprecated `terramate experimental run-order`.
- The `terramate list --run-order` was introduced in version `v0.4.5` and provides the same functionality as the removed command.
- The **Outputs Sharing** feature now has no default value for the `sensitive` field of `input` and `output` blocks.

## v0.10.8

Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.11.0-rc2
0.11.1-dev

0 comments on commit 63c22da

Please sign in to comment.