1. 10.05.2022 1 коммит
  2. 09.05.2022 3 коммита
  3. 13.04.2022 1 коммит
  4. 08.04.2022 3 коммита
  5. 28.03.2022 1 коммит
  6. 23.03.2022 1 коммит
  7. 16.03.2022 1 коммит
  8. 24.02.2022 2 коммита
  9. 11.02.2022 1 коммит
  10. 08.02.2022 1 коммит
  11. 04.02.2022 1 коммит
  12. 26.01.2022 1 коммит
  13. 18.01.2022 1 коммит
  14. 17.01.2022 1 коммит
  15. 13.01.2022 1 коммит
  16. 11.01.2022 1 коммит
  17. 10.01.2022 1 коммит
  18. 05.01.2022 1 коммит
  19. 29.12.2021 1 коммит
  20. 28.12.2021 1 коммит
  21. 22.12.2021 1 коммит
    • Harsh Chouraria's avatar
      Add Backup and Restore tasks for Terraform States
      · 58a8d4f8
      Harsh Chouraria создал
      Reuses standard file upload storage to cover Terraform
      states backup
      
      Adds a seed for generating terraform state files
      under each project
      
      Manual testing (in local GDK env):
      
      - Verfied seed addition via `bin/rake db:seed_fu FILTER=terraform`
      - Verified seed addition is repeatable, with no-ops if versions
        pre-exist
      - Created backup: `bin/rake gitlab:backup:create`
      - Verified output shows up:
      
      ```
      2021-06-05 23:48:54 +0530 -- Dumping terraform states ...
      2021-06-05 23:48:54 +0530 -- done
      ```
      
      - Verified tar contains terraform_state.tar.gz
      - Verified terraform_state.tar.gz carries content
      - Destroyed all records: `Terraform::State.destroy_all`
      - Deleted all files: `rm -rf shared/terraform_state/*`
      - Performed restore: `bin/rake gitlab:backup:restore`
      - Verified `Terraform::State.all` shows back older records
      - Verified association of builds to some of these records
      - Verified `shared/terraform_state/` is repopulated
      - Verified `Terraform::StateVersion.each do |sv| pp sv.file.read end`
        works and shows the seed-added data
      - Verified skipping of `terraform_state` keyword works:
      
      ```
      2021-06-06 00:11:33 +0530 -- Dumping terraform states ...
      2021-06-06 00:11:33 +0530 -- [SKIPPED]
      ```
      
      Verified with same workflow as above (backup, destroy, delete,
      then restore) that skipped backup variant does not contain
      `terraform_state.tar.gz` and does not show up those files after
      restore
      
      Miscellany:
      
      - Adds a missing test for LFS backups
      - Adds File operation fixes to neighboring tests
        so when they fail RSpec is able to show diffs
      - Modified test validates unknown SKIP values not
        breaking backups
        - This is useful to catch any regressions during
          upgrades where pre-installs scripts may refer
          to a new SKIP value that isn't recognized by
          the old version
      
      Changelog: added
      58a8d4f8
  22. 17.12.2021 1 коммит
  23. 05.12.2021 1 коммит
  24. 08.11.2021 1 коммит
  25. 28.10.2021 1 коммит
  26. 23.10.2021 1 коммит
  27. 21.10.2021 1 коммит
  28. 19.10.2021 1 коммит
  29. 09.10.2021 1 коммит
  30. 05.10.2021 1 коммит
  31. 22.09.2021 3 коммита
  32. 16.09.2021 1 коммит
  33. 15.09.2021 1 коммит