You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

87 lines
2.1 KiB

Upgrade ansible (#10190) * project: update all dependencies including ansible Upgrade to ansible 7.x and ansible-core 2.14.x. There seems to be issue with ansible 8/ansible-core 2.15 so we remain on those versions for now. It's quite a big bump already anyway. Signed-off-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@proton.ch> * tests: install aws galaxy collection Signed-off-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@proton.ch> * ansible-lint: disable various rules after ansible upgrade Temporarily disable a bunch of linting action following ansible upgrade. Those should be taken care of separately. Signed-off-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@proton.ch> * project: resolve deprecated-module ansible-lint error Signed-off-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@proton.ch> * project: resolve no-free-form ansible-lint error Signed-off-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@proton.ch> * project: resolve schema[meta] ansible-lint error Signed-off-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@proton.ch> * project: resolve schema[playbook] ansible-lint error Signed-off-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@proton.ch> * project: resolve schema[tasks] ansible-lint error Signed-off-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@proton.ch> * project: resolve risky-file-permissions ansible-lint error Signed-off-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@proton.ch> * project: resolve risky-shell-pipe ansible-lint error Signed-off-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@proton.ch> * project: remove deprecated warn args Signed-off-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@proton.ch> * project: use fqcn for non builtin tasks Signed-off-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@proton.ch> * project: resolve syntax-check[missing-file] for contrib playbook Signed-off-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@proton.ch> * project: use arithmetic inside jinja to fix ansible 6 upgrade Signed-off-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@proton.ch> --------- Signed-off-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@proton.ch>
1 year ago
  1. ---
  2. .molecule:
  3. tags: [c3.small.x86]
  4. only: [/^pr-.*$/]
  5. except: ['triggers']
  6. image: $PIPELINE_IMAGE
  7. services: []
  8. stage: deploy-part1
  9. before_script:
  10. - tests/scripts/rebase.sh
  11. - apt-get update && apt-get install -y python3-pip
  12. - update-alternatives --install /usr/bin/python python /usr/bin/python3 10
  13. - python -m pip uninstall -y ansible ansible-base ansible-core
  14. - python -m pip install -r tests/requirements.txt
  15. - ansible-galaxy install -r tests/requirements.yml
  16. - ./tests/scripts/vagrant_clean.sh
  17. script:
  18. - ./tests/scripts/molecule_run.sh
  19. after_script:
  20. - chronic ./tests/scripts/molecule_logs.sh
  21. artifacts:
  22. when: always
  23. paths:
  24. - molecule_logs/
  25. # CI template for periodic CI jobs
  26. # Enabled when PERIODIC_CI_ENABLED var is set
  27. .molecule_periodic:
  28. only:
  29. variables:
  30. - $PERIODIC_CI_ENABLED
  31. allow_failure: true
  32. extends: .molecule
  33. molecule_full:
  34. extends: .molecule_periodic
  35. molecule_no_container_engines:
  36. extends: .molecule
  37. script:
  38. - ./tests/scripts/molecule_run.sh -e container-engine
  39. when: on_success
  40. molecule_docker:
  41. extends: .molecule
  42. script:
  43. - ./tests/scripts/molecule_run.sh -i container-engine/cri-dockerd
  44. when: on_success
  45. molecule_containerd:
  46. extends: .molecule
  47. script:
  48. - ./tests/scripts/molecule_run.sh -i container-engine/containerd
  49. when: on_success
  50. molecule_cri-o:
  51. extends: .molecule
  52. stage: deploy-part2
  53. script:
  54. - ./tests/scripts/molecule_run.sh -i container-engine/cri-o
  55. when: on_success
  56. # Stage 3 container engines don't get as much attention so allow them to fail
  57. molecule_kata:
  58. extends: .molecule
  59. stage: deploy-part3
  60. allow_failure: true
  61. script:
  62. - ./tests/scripts/molecule_run.sh -i container-engine/kata-containers
  63. when: on_success
  64. molecule_gvisor:
  65. extends: .molecule
  66. stage: deploy-part3
  67. allow_failure: true
  68. script:
  69. - ./tests/scripts/molecule_run.sh -i container-engine/gvisor
  70. when: on_success
  71. molecule_youki:
  72. extends: .molecule
  73. stage: deploy-part3
  74. allow_failure: true
  75. script:
  76. - ./tests/scripts/molecule_run.sh -i container-engine/youki
  77. when: on_success