Skip to content

Commit

Permalink
Maintainance (#213)
Browse files Browse the repository at this point in the history
* Update changelog

* Update Gemfile.lock

* Try to work around 'Already in use' error in CI tests

* Try to skip UQ test

* Test with thrift server using different port to avoid 'Address already in use' error

* Fix test assertion compatible with openmdao 3.35
  • Loading branch information
relf authored Oct 16, 2024
1 parent 4cc44a8 commit d593f3c
Show file tree
Hide file tree
Showing 6 changed files with 169 additions and 112 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
<h1>CHANGELOG</h1>

<h3>1.31.1 (15/10/2024)</h3>
<ul>
<li>Raise an exception on failed analysis creation</li>
<li>Upgrade to ruby 3.3.5 and Passenger 6.0.23</li>
</ul>

<h3>1.31.0 (30/08/2024)</h3>
<ul>
<li>Upgrade GEMSEO generated code to GEMSEO 5.x</li>
Expand Down
155 changes: 97 additions & 58 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,12 @@ GEM
minitest (>= 5.1)
securerandom (>= 0.3)
tzinfo (~> 2.0, >= 2.0.5)
acts_as_list (1.2.2)
acts_as_list (1.2.3)
activerecord (>= 6.1)
activesupport (>= 6.1)
addressable (2.8.7)
public_suffix (>= 2.0.2, < 7.0)
airbrussh (1.5.2)
airbrussh (1.5.3)
sshkit (>= 1.6.1, != 1.7.0)
ancestry (4.3.3)
activerecord (>= 5.2.6)
Expand Down Expand Up @@ -147,12 +147,22 @@ GEM
drb (2.2.1)
erubi (1.13.0)
execjs (2.9.1)
faraday (2.10.1)
faraday-net_http (>= 2.0, < 3.2)
faraday (2.12.0)
faraday-net_http (>= 2.0, < 3.4)
json
logger
faraday-net_http (3.1.1)
faraday-net_http (3.3.0)
net-http
ffi (1.17.0-aarch64-linux-gnu)
ffi (1.17.0-aarch64-linux-musl)
ffi (1.17.0-arm-linux-gnu)
ffi (1.17.0-arm-linux-musl)
ffi (1.17.0-arm64-darwin)
ffi (1.17.0-x86-linux-gnu)
ffi (1.17.0-x86-linux-musl)
ffi (1.17.0-x86_64-darwin)
ffi (1.17.0-x86_64-linux-gnu)
ffi (1.17.0-x86_64-linux-musl)
font-awesome-sass (6.5.2)
sassc (~> 2.0)
formatador (1.1.0)
Expand All @@ -171,33 +181,33 @@ GEM
guard-minitest (2.4.6)
guard-compat (~> 1.2)
minitest (>= 3.0)
highline (3.1.0)
highline (3.1.1)
reline
i18n (1.14.5)
i18n (1.14.6)
concurrent-ruby (~> 1.0)
image_processing (1.13.0)
mini_magick (>= 4.9.5, < 5)
ruby-vips (>= 2.0.17, < 3)
io-console (0.7.2)
irb (1.14.0)
irb (1.14.1)
rdoc (>= 4.0.0)
reline (>= 0.4.2)
jbuilder (2.12.0)
jbuilder (2.13.0)
actionview (>= 5.0.0)
activesupport (>= 5.0.0)
jquery-rails (4.6.0)
rails-dom-testing (>= 1, < 3)
railties (>= 4.2.0)
thor (>= 0.14, < 2.0)
json (2.7.2)
json-schema (4.3.1)
addressable (>= 2.8)
json-schema (5.0.1)
addressable (~> 2.8)
jsonapi-renderer (0.2.2)
language_server-protocol (3.17.0.3)
listen (3.9.0)
rb-fsevent (~> 0.10, >= 0.10.3)
rb-inotify (~> 0.9, >= 0.9.10)
logger (1.6.0)
logger (1.6.1)
loofah (2.22.0)
crass (~> 1.0.2)
nokogiri (>= 1.12.0)
Expand All @@ -213,12 +223,12 @@ GEM
mini_magick (4.13.2)
mini_mime (1.1.5)
minitest (5.25.1)
msgpack (1.7.2)
msgpack (1.7.3)
mysql2 (0.5.6)
nenv (0.3.0)
net-http (0.4.1)
uri
net-imap (0.4.15)
net-imap (0.4.17)
date
net-protocol
net-ldap (0.19.0)
Expand All @@ -232,8 +242,18 @@ GEM
net-ssh (>= 5.0.0, < 8.0.0)
net-smtp (0.5.0)
net-protocol
net-ssh (7.2.3)
net-ssh (7.3.0)
nio4r (2.7.3)
nokogiri (1.16.7-aarch64-linux)
racc (~> 1.4)
nokogiri (1.16.7-arm-linux)
racc (~> 1.4)
nokogiri (1.16.7-arm64-darwin)
racc (~> 1.4)
nokogiri (1.16.7-x86-linux)
racc (~> 1.4)
nokogiri (1.16.7-x86_64-darwin)
racc (~> 1.4)
nokogiri (1.16.7-x86_64-linux)
racc (~> 1.4)
notiffany (0.1.3)
Expand All @@ -243,10 +263,11 @@ GEM
faraday (>= 1, < 3)
sawyer (~> 0.9)
orm_adapter (0.5.0)
ostruct (0.6.0)
package_json (0.1.0)
pagy (9.0.7)
pagy (9.1.0)
parallel (1.26.3)
parser (3.3.4.2)
parser (3.3.5.0)
ast (~> 2.4.1)
racc
parslet (2.0.0)
Expand All @@ -267,12 +288,12 @@ GEM
psych (5.1.2)
stringio
public_suffix (6.0.1)
puma (6.4.2)
puma (6.4.3)
nio4r (~> 2.0)
pundit (2.4.0)
activesupport (>= 3.0.0)
racc (1.8.1)
rack (3.1.7)
rack (3.1.8)
rack-attack (6.7.0)
rack (>= 1.0, < 4)
rack-cors (2.0.2)
Expand Down Expand Up @@ -323,66 +344,64 @@ GEM
rdoc (6.7.0)
psych (>= 4.0.0)
regexp_parser (2.9.2)
reline (0.5.9)
reline (0.5.10)
io-console (~> 0.5)
responders (3.1.1)
actionpack (>= 5.2)
railties (>= 5.2)
rexml (3.3.5)
strscan
rexml (3.3.8)
rolify (6.0.1)
rspec-core (3.13.0)
rspec-core (3.13.1)
rspec-support (~> 3.13.0)
rspec-expectations (3.13.2)
rspec-expectations (3.13.3)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.13.0)
rspec-mocks (3.13.1)
rspec-mocks (3.13.2)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.13.0)
rspec-rails (6.1.4)
actionpack (>= 6.1)
activesupport (>= 6.1)
railties (>= 6.1)
rspec-rails (7.0.1)
actionpack (>= 7.0)
activesupport (>= 7.0)
railties (>= 7.0)
rspec-core (~> 3.13)
rspec-expectations (~> 3.13)
rspec-mocks (~> 3.13)
rspec-support (~> 3.13)
rspec-support (3.13.1)
rswag-api (2.14.0)
rswag-api (2.15.0)
activesupport (>= 5.2, < 8.0)
railties (>= 5.2, < 8.0)
rswag-specs (2.14.0)
rswag-specs (2.15.0)
activesupport (>= 5.2, < 8.0)
json-schema (>= 2.2, < 5.0)
json-schema (>= 2.2, < 6.0)
railties (>= 5.2, < 8.0)
rspec-core (>= 2.14)
rubocop (1.65.1)
rubocop (1.67.0)
json (~> 2.3)
language_server-protocol (>= 3.17.0)
parallel (~> 1.10)
parser (>= 3.3.0.2)
rainbow (>= 2.2.2, < 4.0)
regexp_parser (>= 2.4, < 3.0)
rexml (>= 3.2.5, < 4.0)
rubocop-ast (>= 1.31.1, < 2.0)
rubocop-ast (>= 1.32.2, < 2.0)
ruby-progressbar (~> 1.7)
unicode-display_width (>= 2.4.0, < 3.0)
rubocop-ast (1.32.1)
rubocop-ast (1.32.3)
parser (>= 3.3.1.0)
rubocop-md (1.2.2)
rubocop (>= 1.0)
rubocop-minitest (0.35.1)
rubocop-md (1.2.3)
rubocop (>= 1.45)
rubocop-minitest (0.36.0)
rubocop (>= 1.61, < 2.0)
rubocop-ast (>= 1.31.1, < 2.0)
rubocop-packaging (0.5.2)
rubocop (>= 1.33, < 2.0)
rubocop-performance (1.21.1)
rubocop-performance (1.22.1)
rubocop (>= 1.48.1, < 2.0)
rubocop-ast (>= 1.31.1, < 2.0)
rubocop-rails (2.25.1)
rubocop-rails (2.26.2)
activesupport (>= 4.2.0)
rack (>= 1.1)
rubocop (>= 1.33.0, < 2.0)
rubocop (>= 1.52.0, < 2.0)
rubocop-ast (>= 1.31.1, < 2.0)
rubocop-rails_config (1.16.0)
rubocop (>= 1.57.0)
Expand Down Expand Up @@ -411,7 +430,7 @@ GEM
addressable (>= 2.3.5)
faraday (>= 0.17.3, < 3)
securerandom (0.3.1)
selenium-webdriver (4.23.0)
selenium-webdriver (4.25.0)
base64 (~> 0.2)
logger (~> 1.4)
rexml (~> 3.2, >= 3.2.5)
Expand All @@ -429,7 +448,7 @@ GEM
docile (~> 1.1)
simplecov-html (~> 0.11)
simplecov_json_formatter (~> 0.1)
simplecov-html (0.12.3)
simplecov-html (0.13.1)
simplecov-lcov (0.8.0)
simplecov_json_formatter (0.1.4)
slack-notifier (2.4.0)
Expand All @@ -441,34 +460,42 @@ GEM
actionpack (>= 6.1)
activesupport (>= 6.1)
sprockets (>= 3.0.0)
sqlite3 (2.0.4-x86_64-linux-gnu)
sshkit (1.23.0)
sqlite3 (2.1.0-aarch64-linux-gnu)
sqlite3 (2.1.0-aarch64-linux-musl)
sqlite3 (2.1.0-arm-linux-gnu)
sqlite3 (2.1.0-arm-linux-musl)
sqlite3 (2.1.0-arm64-darwin)
sqlite3 (2.1.0-x86-linux-gnu)
sqlite3 (2.1.0-x86-linux-musl)
sqlite3 (2.1.0-x86_64-darwin)
sqlite3 (2.1.0-x86_64-linux-gnu)
sqlite3 (2.1.0-x86_64-linux-musl)
sshkit (1.23.2)
base64
net-scp (>= 1.1.2)
net-sftp (>= 2.1.2)
net-ssh (>= 2.8.0)
ostruct
stringio (3.1.1)
strscan (3.1.0)
sucker_punch (3.2.0)
concurrent-ruby (~> 1.0)
terser (1.2.3)
terser (1.2.4)
execjs (>= 0.3.0, < 3)
thor (1.3.2)
thrift (0.20.0)
thrift (0.21.0)
tilt (2.4.0)
timeout (0.4.1)
toml (0.3.0)
parslet (>= 1.8.0, < 3.0.0)
turbo-rails (2.0.6)
turbo-rails (2.0.11)
actionpack (>= 6.0.0)
activejob (>= 6.0.0)
railties (>= 6.0.0)
tzinfo (2.0.6)
concurrent-ruby (~> 1.0)
tzinfo-data (1.2024.1)
tzinfo-data (1.2024.2)
tzinfo (>= 1.0.0)
unicode-display_width (2.5.0)
uri (0.13.0)
unicode-display_width (2.6.0)
uri (0.13.1)
useragent (0.16.10)
warden (1.2.9)
rack (>= 2.0.9)
Expand All @@ -477,17 +504,29 @@ GEM
activemodel (>= 6.0.0)
bindex (>= 0.4.0)
railties (>= 6.0.0)
webrick (1.8.1)
webrick (1.8.2)
websocket (1.2.11)
websocket-driver (0.7.6)
websocket-extensions (>= 0.1.0)
websocket-extensions (0.1.5)
xpath (3.2.0)
nokogiri (~> 1.8)
zeitwerk (2.6.17)
zeitwerk (2.7.0)

PLATFORMS
x86_64-linux
aarch64-linux
aarch64-linux-gnu
aarch64-linux-musl
arm-linux
arm-linux-gnu
arm-linux-musl
arm64-darwin
x86-linux
x86-linux-gnu
x86-linux-musl
x86_64-darwin
x86_64-linux-gnu
x86_64-linux-musl

DEPENDENCIES
active_model_serializers (~> 0.10.14)
Expand Down Expand Up @@ -548,4 +587,4 @@ RUBY VERSION
ruby 3.3.5p100

BUNDLED WITH
2.5.6
2.5.16
8 changes: 5 additions & 3 deletions app/lib/whats_opt/code_generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ class CodeGenerator
DEFAULT_DOE_DRIVER = :smt_doe_lhs
DEFAULT_OPTIMIZATION_DRIVER = :scipy_optimizer_slsqp

attr_accessor :genfiles, :prefix
attr_accessor :genfiles, :prefix, :server_host, :server_port

def initialize(mda, pkg_format: false)
def initialize(mda, pkg_format: false, server_host: nil, server_port: 31400)
@prefix = "code"
@comment_delimiters = { begin: '"""', end: '"""' }
@mda = mda
Expand All @@ -22,7 +22,9 @@ def initialize(mda, pkg_format: false)
@server_module = "server"
@egmdo_module = "egmdo"
@server_host = "localhost"
@server_port = 31400
@server_host = server_host
@remote = !server_host.nil?
@server_port = server_port
# TODO: Should be independent from OpenMDAO impl
# (should be something like Python impl) but at the moment
# package format (@pkg_prefix) is only implemented (used) with
Expand Down
Loading

0 comments on commit d593f3c

Please sign in to comment.