cnvrg 2.1.12 → 2.1.13

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 850c099310fb739283b4fe34c0c0eccfb9bd4297e9d525daa497eb45481ea707
4
- data.tar.gz: d84a2854fe5ede6ab5a65804d11068a00c88dccf5d341a9d54728c3f5870a9b0
3
+ metadata.gz: 39ee04e88be68fe27beb93cf57070e9b63fc1f908f2ff97f722bcb402d03bc78
4
+ data.tar.gz: 28e404bb36262d03f29fa96fddadbcab76d4c9eb99a4861078bb1b266621b85c
5
5
  SHA512:
6
- metadata.gz: 0e3da1a344367dacf8496c0e59de07770ce69db0ab59009d14fd27bc15ae6e9e56bb653e49c95d732a5b1dde962a550cba8da3310806c615015fa693ae9899d3
7
- data.tar.gz: 01eda251528f076aa244558272ef4a630145fb7e8752f5f25b7c1f6bfb39be61e33189ad1e8b5e50ac1d80825de303ec479186eb65b0db6d2b62cce1b693c99a
6
+ metadata.gz: dbc2220a92859ebd7689fa3922c38d4a6cd64bd555507f5eed65f91edc1eb17f652ff886310dc3e82c78a4091f0490c0f59efbcceea785dc3b77d5a1a01ff48e
7
+ data.tar.gz: 78c3ec169b49cd9b5b87240db503f03bc6ccd3e7665a9961d022d82a272ddaf8ea12fb2399acda5c4a13a402c06ebaf4e1500a39142f6eae9c81618b3bea8190
data/Readme.md CHANGED
@@ -117,4 +117,34 @@
117
117
  * DEV-16090 - Bug: Tensorboard compare - webapp gets stuck in "init" state
118
118
  ## Version v2.1.12
119
119
  2022-11-09
120
- * DEV-15972 - Bug: Customer cannot use dataset query due to ssl error
120
+ * DEV-15972 - Bug: Customer cannot use dataset query due to ssl error
121
+ ## Version v2.1.13
122
+ 2023-03-05
123
+ * DEV-16372 - Epic: Cli V2 release - phase 1
124
+ h2. 🎯 Objective
125
+
126
+ Release v2 of cnvrg cli and deprecate the old version
127
+
128
+ h2. 🤔 Assumptions
129
+
130
+ # *Docs will be released (joint effort of tech writer, support and dev)*
131
+ # *cnvrg:v6 image will be released (with updated python version)*
132
+ # *All issues on High & Highest priority n sdk-productionize fixVersion will be resolved*
133
+ # *QA tests will be performed in different set ups (aks/eks/gke, windows device, mac m1)*
134
+
135
+
136
+ Note: this is not the most detailed epic, as most things already exist in cliv1 or sdkv2. for any questions please contact [~accountid:5fb5461f4a09640069dbf768]
137
+ * DEV-16372 - Epic: Cli V2 release - phase 1
138
+ h2. 🎯 Objective
139
+
140
+ Release v2 of cnvrg cli and deprecate the old version
141
+
142
+ h2. 🤔 Assumptions
143
+
144
+ # *Docs will be released (joint effort of tech writer, support and dev)*
145
+ # *cnvrg:v6 image will be released (with updated python version)*
146
+ # *All issues on High & Highest priority n sdk-productionize fixVersion will be resolved*
147
+ # *QA tests will be performed in different set ups (aks/eks/gke, windows device, mac m1)*
148
+
149
+
150
+ Note: this is not the most detailed epic, as most things already exist in cliv1 or sdkv2. for any questions please contact [~accountid:5fb5461f4a09640069dbf768]
data/lib/cnvrg/cli.rb CHANGED
@@ -3636,19 +3636,15 @@ module Cnvrg
3636
3636
  end
3637
3637
 
3638
3638
  log_message(str, Thor::Shell::Color::GREEN)
3639
-
3639
+
3640
3640
  exit_status = 0
3641
-
3641
+
3642
3642
  if options['wait']
3643
3643
  end_pos = 0
3644
3644
  while true
3645
3645
  tries = 0
3646
3646
  begin
3647
- result = Cnvrg::API_V2.request(
3648
- "#{project.owner}/projects/#{project.slug}/experiments/#{res["result"]["exp_url"]}/info",
3649
- 'GET',
3650
- { exit_status: true, grid: res["result"]["grid"], pos: end_pos }
3651
- )
3647
+ result = fetch_experiment_info(res,project,end_pos)
3652
3648
 
3653
3649
  exit_statuses = result.values.pluck('exit_status')
3654
3650
  if exit_statuses.include? nil
@@ -5956,6 +5952,24 @@ module Cnvrg
5956
5952
  end
5957
5953
  end
5958
5954
 
5955
+
5956
+ def fetch_experiment_info(res, project, end_pos)
5957
+
5958
+ result =
5959
+ Cnvrg::API_V2
5960
+ .request("#{project.owner}/projects/#{project.slug}/experiments/#{res["result"]["exp_url"]}/info",
5961
+ 'GET',
5962
+ { exit_status: true, grid: res["result"]["grid"], pos: end_pos }
5963
+ )
5964
+
5965
+ if result.key?("exit_status")
5966
+ return result
5967
+ end
5968
+
5969
+ return result["data"]["attributes"]["info"]
5970
+
5971
+ end
5972
+
5959
5973
  end
5960
5974
  end
5961
5975
 
data/lib/cnvrg/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Cnvrg
2
- VERSION = '2.1.12'
2
+ VERSION = '2.1.13'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cnvrg
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.12
4
+ version: 2.1.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yochay Ettun
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2022-11-30 00:00:00.000000000 Z
13
+ date: 2023-03-05 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: bundler