vidar 1.13.4 → 1.15.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5c96a6938608186988d95fbfc35484c3277591ada026983b454bf18f371edc69
4
- data.tar.gz: e6505546c3a9609c0b2443d469460f2f36194679d4b906601b9dab5c2ded4eca
3
+ metadata.gz: 0c01018404cc849be395df92d01c21d2de70673edc6ae4d58a6283e1b8bf6987
4
+ data.tar.gz: f341847d26d3a47ea72247259a00285d6642f09fcdb82a637eed791562909937
5
5
  SHA512:
6
- metadata.gz: 9d0659e94c7c009057d0d752f79eb1fadc1fc993e4de0f9b24975d77771f0192efafe9ea1a7def905178d7027c3a42b1eb0e60ef708c0583a45e3fc4e5c0c1e6
7
- data.tar.gz: d0a1042e63335f76e87b61b6a899d9df704d35fe34aec8f0494bc9b571672c50b2724f4881b442e534b9207ec8123c4279fa1df03febe02316c980898849a0ae
6
+ metadata.gz: 4a80eb75d78c8686764010f4f224941355041ac51211efeaf9d75772f234d818623e0aa41623821ca77c76df8300ce984c96ae3323f8dc26bb3d3bad3d76d6ed
7
+ data.tar.gz: c03c0acb76ec876031f094819af6c13a70f0e601087df1c065c734811ca102cbd366b06763beddeec0e8330398a8d0357ac76a94d83e86b9d07d434f6f108c92
data/.bundler-version CHANGED
@@ -1 +1,2 @@
1
- 2.5.17
1
+ 2.6.9
2
+
@@ -2,5 +2,5 @@
2
2
  <!--- Describe your changes in detail -->
3
3
  <!--- Why is this change required? What problem does it solve? -->
4
4
 
5
- ## Related issue(s) or PR(s)
6
- <!--- GH issue number -->
5
+ ## Related tickets(s), PR(s) or slack message:
6
+ <!--- Ticket/Issue/PR number or URL -->
@@ -9,6 +9,6 @@ jobs:
9
9
  runs-on: ubuntu-latest
10
10
  steps:
11
11
  - uses: hmarr/auto-approve-action@v3
12
- if: github.actor == 'dependabot[bot]' || github.actor == 'dependabot-preview[bot]' || github.actor == 'renofidev' || contains(github.event.pull_request.labels.*.name, 'HOTFIX-AUTO-APPROVE') || contains(github.event.pull_request.labels.*.name, 'dependencies')
12
+ if: github.actor == 'dependabot[bot]' || github.actor == 'dependabot-preview[bot]' || github.actor == 'renofidev' || contains(github.event.pull_request.labels.*.name, 'HOTFIX-AUTO-APPROVE') || contains(github.event.pull_request.labels.*.name, 'self-approve') || contains(github.event.pull_request.labels.*.name, 'dependencies')
13
13
  with:
14
14
  github-token: "${{ secrets.GITHUB_TOKEN }}"
@@ -1,5 +1,8 @@
1
1
  name: automerge
2
2
  on:
3
+ pull_request_target:
4
+ types:
5
+ - labeled
3
6
  pull_request_review:
4
7
  types:
5
8
  - submitted
@@ -12,8 +15,17 @@ jobs:
12
15
  runs-on: ubuntu-latest
13
16
  steps:
14
17
  - name: automerge
15
- uses: pascalgn/automerge-action@v0.16.2
18
+ uses: pascalgn/automerge-action@v0.16.4
19
+ env:
20
+ GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
21
+ MERGE_METHOD: squash
22
+ MERGE_DELETE_BRANCH: true
23
+ MERGE_LABELS: "automerge,!automerge blocked"
24
+ - name: automerge-dependencies
25
+ uses: pascalgn/automerge-action@v0.16.4
16
26
  env:
17
27
  GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
18
28
  MERGE_METHOD: squash
19
29
  MERGE_DELETE_BRANCH: true
30
+ MERGE_LABELS: "dependencies,!automerge blocked"
31
+ MERGE_REMOVE_LABELS: ""
@@ -11,7 +11,7 @@ jobs:
11
11
  runs-on: ubuntu-latest
12
12
  strategy:
13
13
  matrix:
14
- ruby-version: [3.2, 3.3]
14
+ ruby-version: [3.3, 3.4]
15
15
 
16
16
  steps:
17
17
  - uses: actions/checkout@v3
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 1.15.0 - 2025-06-23
4
+
5
+ Don't stop watining and mark deployment as failed, when any container is still in a waiting state
6
+
7
+ ## 1.14.0 - 2025-02-05
8
+
9
+ Ruby 3.4 support. Drop ruby 3.2 support.
10
+
3
11
  ## 1.13.0 - 2024-07-23
4
12
 
5
13
  Make docker compose command configurable and use `docker compose` instead `docker-compose` by default
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- vidar (1.13.4)
4
+ vidar (1.15.0)
5
5
  colorize
6
6
  faraday
7
7
  thor (~> 1.0)
@@ -11,77 +11,83 @@ GEM
11
11
  specs:
12
12
  addressable (2.8.7)
13
13
  public_suffix (>= 2.0.2, < 7.0)
14
- ast (2.4.2)
14
+ ast (2.4.3)
15
15
  awesome_print (1.9.2)
16
- bigdecimal (3.1.8)
16
+ bigdecimal (3.2.2)
17
17
  coderay (1.1.3)
18
18
  colorize (1.1.0)
19
19
  crack (1.0.0)
20
20
  bigdecimal
21
21
  rexml
22
- diff-lcs (1.5.1)
23
- faraday (2.10.1)
24
- faraday-net_http (>= 2.0, < 3.2)
22
+ diff-lcs (1.6.2)
23
+ faraday (2.13.1)
24
+ faraday-net_http (>= 2.0, < 3.5)
25
+ json
25
26
  logger
26
- faraday-net_http (3.1.1)
27
- net-http
28
- hashdiff (1.1.0)
29
- json (2.7.2)
30
- language_server-protocol (3.17.0.3)
31
- logger (1.6.0)
27
+ faraday-net_http (3.4.1)
28
+ net-http (>= 0.5.0)
29
+ hashdiff (1.2.0)
30
+ json (2.12.2)
31
+ language_server-protocol (3.17.0.5)
32
+ lint_roller (1.1.0)
33
+ logger (1.7.0)
32
34
  method_source (1.1.0)
33
- net-http (0.4.1)
35
+ net-http (0.6.0)
34
36
  uri
35
- parallel (1.25.1)
36
- parser (3.3.4.0)
37
+ parallel (1.27.0)
38
+ parser (3.3.8.0)
37
39
  ast (~> 2.4.1)
38
40
  racc
39
- pry (0.14.2)
41
+ prism (1.4.0)
42
+ pry (0.15.2)
40
43
  coderay (~> 1.1)
41
44
  method_source (~> 1.0)
42
- public_suffix (6.0.1)
45
+ public_suffix (6.0.2)
43
46
  racc (1.8.1)
44
47
  rainbow (3.1.1)
45
- rake (13.2.1)
46
- regexp_parser (2.9.2)
47
- rexml (3.3.4)
48
- strscan
49
- rspec (3.13.0)
48
+ rake (13.3.0)
49
+ regexp_parser (2.10.0)
50
+ rexml (3.4.1)
51
+ rspec (3.13.1)
50
52
  rspec-core (~> 3.13.0)
51
53
  rspec-expectations (~> 3.13.0)
52
54
  rspec-mocks (~> 3.13.0)
53
- rspec-core (3.13.0)
55
+ rspec-core (3.13.4)
54
56
  rspec-support (~> 3.13.0)
55
- rspec-expectations (3.13.1)
57
+ rspec-expectations (3.13.5)
56
58
  diff-lcs (>= 1.2.0, < 2.0)
57
59
  rspec-support (~> 3.13.0)
58
- rspec-mocks (3.13.1)
60
+ rspec-mocks (3.13.5)
59
61
  diff-lcs (>= 1.2.0, < 2.0)
60
62
  rspec-support (~> 3.13.0)
61
- rspec-support (3.13.1)
62
- rubocop (1.65.1)
63
+ rspec-support (3.13.4)
64
+ rubocop (1.77.0)
63
65
  json (~> 2.3)
64
- language_server-protocol (>= 3.17.0)
66
+ language_server-protocol (~> 3.17.0.2)
67
+ lint_roller (~> 1.1.0)
65
68
  parallel (~> 1.10)
66
69
  parser (>= 3.3.0.2)
67
70
  rainbow (>= 2.2.2, < 4.0)
68
- regexp_parser (>= 2.4, < 3.0)
69
- rexml (>= 3.2.5, < 4.0)
70
- rubocop-ast (>= 1.31.1, < 2.0)
71
+ regexp_parser (>= 2.9.3, < 3.0)
72
+ rubocop-ast (>= 1.45.1, < 2.0)
71
73
  ruby-progressbar (~> 1.7)
72
- unicode-display_width (>= 2.4.0, < 3.0)
73
- rubocop-ast (1.31.3)
74
- parser (>= 3.3.1.0)
75
- rubocop-rake (0.6.0)
76
- rubocop (~> 1.0)
77
- rubocop-rspec (3.0.3)
78
- rubocop (~> 1.61)
74
+ unicode-display_width (>= 2.4.0, < 4.0)
75
+ rubocop-ast (1.45.1)
76
+ parser (>= 3.3.7.2)
77
+ prism (~> 1.4)
78
+ rubocop-rake (0.7.1)
79
+ lint_roller (~> 1.1)
80
+ rubocop (>= 1.72.1)
81
+ rubocop-rspec (3.6.0)
82
+ lint_roller (~> 1.1)
83
+ rubocop (~> 1.72, >= 1.72.1)
79
84
  ruby-progressbar (1.13.0)
80
- strscan (3.1.0)
81
- thor (1.3.1)
82
- unicode-display_width (2.5.0)
83
- uri (0.13.0)
84
- webmock (3.23.1)
85
+ thor (1.3.2)
86
+ unicode-display_width (3.1.4)
87
+ unicode-emoji (~> 4.0, >= 4.0.4)
88
+ unicode-emoji (4.0.4)
89
+ uri (1.0.3)
90
+ webmock (3.25.1)
85
91
  addressable (>= 2.8.0)
86
92
  crack (>= 0.3.2)
87
93
  hashdiff (>= 0.4.0, < 2.0.0)
@@ -102,4 +108,4 @@ DEPENDENCIES
102
108
  webmock
103
109
 
104
110
  BUNDLED WITH
105
- 2.5.16
111
+ 2.6.3
data/lib/vidar/cli.rb CHANGED
@@ -24,12 +24,14 @@ module Vidar
24
24
  Log.info "Pulling #{Config.get!(:image)} tags"
25
25
  Run.docker "pull #{Config.get!(:image)}:#{Config.get!(:base_stage_name)}-#{Config.get!(:current_branch)} 2> /dev/null || true"
26
26
 
27
- docker_images = `docker images --format "{{.Repository}}:{{.Tag}}"`.split("\n")
27
+ image_names = `docker images --format "{{.Repository}}:{{.Tag}}"`.split("\n")
28
28
  base_image = "#{Config.get!(:image)}:#{Config.get!(:base_stage_name)}-#{Config.get!(:default_branch)}"
29
- Run.docker "pull #{base_image} 2> /dev/null || true" unless docker_images.include?(base_image)
29
+ Run.docker "pull #{base_image} 2> /dev/null || true" unless image_names.include?(base_image)
30
30
 
31
31
  Log.info "Docker images:"
32
- Log.info docker_images.join("\n")
32
+ image_names.each do |image_name|
33
+ puts image_name
34
+ end
33
35
  end
34
36
 
35
37
  desc "build_and_cache_base", "Build and caches base stage"
@@ -126,8 +128,8 @@ module Vidar
126
128
  destination = options[:destination]
127
129
  container = options[:container]
128
130
  all = options[:all]
129
- Log.info "Set kubectl image for #{all ? 'all ' : ''}#{destination} container=#{container}..."
130
- Run.kubectl "set image #{destination} #{container}=#{Config.get!(:image)}:#{revision} #{all ? '--all' : ''}"
131
+ Log.info "Set kubectl image for #{'all ' if all}#{destination} container=#{container}..."
132
+ Run.kubectl "set image #{destination} #{container}=#{Config.get!(:image)}:#{revision} #{'--all' if all}"
131
133
  end
132
134
 
133
135
  desc "set_image", "Set image for k8s deployment"
@@ -144,8 +146,8 @@ module Vidar
144
146
  destination = options[:destination]
145
147
  container = options[:container]
146
148
  all = options[:all]
147
- Log.info "Set kubectl image for #{all ? 'all ' : ''}#{destination} container=#{container}..."
148
- Run.kubectl "set image #{destination} #{container}=#{Config.get!(:image)}:#{revision} #{all ? '--all' : ''}"
149
+ Log.info "Set kubectl image for #{'all ' if all}#{destination} container=#{container}..."
150
+ Run.kubectl "set image #{destination} #{container}=#{Config.get!(:image)}:#{revision} #{'--all' if all}"
149
151
  end
150
152
 
151
153
  desc "release", "Build and publish docker images"
@@ -34,7 +34,7 @@ module Vidar
34
34
  until pod_set.deployed?
35
35
  tries += 1
36
36
  sleep(SLEEP)
37
- if tries > max_tries
37
+ if tries > max_tries && !pod_set.waiting?
38
38
  break
39
39
  end
40
40
  end
@@ -10,6 +10,10 @@ module Vidar
10
10
  containers.any?
11
11
  end
12
12
 
13
+ def waiting?
14
+ containers.any?(&:waiting?)
15
+ end
16
+
13
17
  def deployed?
14
18
  if items.empty?
15
19
  Log.error "Could not fetch pod list"
data/lib/vidar/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Vidar
2
- VERSION = '1.13.4'.freeze
2
+ VERSION = '1.15.0'.freeze
3
3
  end
data/vidar.gemspec CHANGED
@@ -17,7 +17,7 @@ Gem::Specification.new do |spec|
17
17
  spec.metadata['changelog_uri'] = 'https://github.com/RenoFi/vidar/blob/master/CHANGELOG.md'
18
18
  spec.metadata['rubygems_mfa_required'] = 'true'
19
19
 
20
- spec.required_ruby_version = Gem::Requirement.new('>= 3.2.0')
20
+ spec.required_ruby_version = Gem::Requirement.new('>= 3.3.0')
21
21
 
22
22
  spec.files = Dir.chdir(__dir__) do
23
23
  `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(bin/|spec/|\.rub)}) }
metadata CHANGED
@@ -1,15 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vidar
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.13.4
4
+ version: 1.15.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Krzysztof Knapik
8
8
  - RenoFi Engineering Team
9
- autorequire:
10
9
  bindir: exe
11
10
  cert_chain: []
12
- date: 2024-08-02 00:00:00.000000000 Z
11
+ date: 1980-01-02 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: colorize
@@ -53,7 +52,6 @@ dependencies:
53
52
  - - "~>"
54
53
  - !ruby/object:Gem::Version
55
54
  version: '1.0'
56
- description:
57
55
  email:
58
56
  - knapo@knapo.net
59
57
  - engineering@renofi.com
@@ -104,7 +102,6 @@ metadata:
104
102
  source_code_uri: https://github.com/RenoFi/vidar
105
103
  changelog_uri: https://github.com/RenoFi/vidar/blob/master/CHANGELOG.md
106
104
  rubygems_mfa_required: 'true'
107
- post_install_message:
108
105
  rdoc_options: []
109
106
  require_paths:
110
107
  - lib
@@ -112,15 +109,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
112
109
  requirements:
113
110
  - - ">="
114
111
  - !ruby/object:Gem::Version
115
- version: 3.2.0
112
+ version: 3.3.0
116
113
  required_rubygems_version: !ruby/object:Gem::Requirement
117
114
  requirements:
118
115
  - - ">="
119
116
  - !ruby/object:Gem::Version
120
117
  version: '0'
121
118
  requirements: []
122
- rubygems_version: 3.5.17
123
- signing_key:
119
+ rubygems_version: 3.6.9
124
120
  specification_version: 4
125
121
  summary: K8s deployment tools based on thor
126
122
  test_files: []