cloudeteer / terraform-azurerm-vm

☁️ Cloudeteer's Terraform AzureRM virtual machine module
https://www.cloudeteer.de
MIT License
6 stars 0 forks source link

Remote tests blocking multiple pull requests #19

Closed rswrz closed 1 month ago

rswrz commented 1 month ago

Currently, when multiple pull requests are open, the remote tests block all but one PR, as only a single test can run at a time. The remote test takes approximately 30 minutes, creating significant delays in feature development and bug fixes.

╷
│ Error: A resource with the ID "/subscriptions/***/resourceGroups/rg-tftest-dev-we-01" already exists - to be managed via Terraform this resource needs to be imported into the State. Please see the resource documentation for "azurerm_resource_group" for more information.
│ 
│   with azurerm_resource_group.tftest,
│   on tests/remote/resources.tf line 44, in resource "azurerm_resource_group" "tftest":
│   44: resource "azurerm_resource_group" "tftest" {
│ 
╵

Impact:

Suggested Solutions:

  1. Optimize Remote Test Execution Time: Reduce the test duration to avoid long delays.
  2. Parallel Test Runs: Allow each PR to run its remote test independently to prevent bottlenecks.