Skip to content

Commit

Permalink
Merge branch 'master' into pm-job-management
Browse files Browse the repository at this point in the history
  • Loading branch information
ashton22305 authored Nov 15, 2024
2 parents 152333a + 918ae09 commit 1797a92
Show file tree
Hide file tree
Showing 94 changed files with 4,527 additions and 839 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,18 @@ jobs:
- os: ubuntu-latest
ruby: "3.0.2"
bundler: "2.3.5"
# Test versions from RHEL8 & RHEL9
# Test versions from Debian 12
- os: ubuntu-latest
ruby: "3.1.2"
bundler: "2.3.7"
# Test versions from Amazon Linux 2023 and Ubuntu 24.04
- os: ubuntu-latest
ruby: "3.2.2"
bundler: "2.4.10"
# Test versions from RHEL8 & RHEL9
- os: ubuntu-latest
ruby: "3.3.5"
bundler: "2.5.16"
runs-on: ${{ matrix.os }}
name: Unit tests

Expand Down Expand Up @@ -129,20 +133,23 @@ jobs:
- x86_64
- aarch64
- ppc64le
version: ["3.1"]
version: ["4.0"]
exclude:
# Amazon 2023 on aarch64 is very slow and will time out
- dist: amzn2023
arch: aarch64
# Amazon 2023 doesn't have ppc64le containers
- dist: amzn2023
arch: ppc64le
# Ubuntu doesn't have way to get NodeJS 14+ on ppc64le
# Ubuntu and Debian doesn't have way to get NodeJS 20+ on ppc64le
- dist: ubuntu-20.04
arch: ppc64le
# Ubuntu doesn't have way to get NodeJS 14+ on ppc64le
- dist: ubuntu-22.04
arch: ppc64le
- dist: ubuntu-24.04
arch: ppc64le
- dist: debian-12
arch: ppc64le
runs-on: ${{ matrix.os }}
name: E2E test ${{ matrix.dist }}-${{ matrix.arch }}

Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ jobs:
path: ~/vendor/bundle
key: ${{ runner.os }}-${{ matrix.ruby }}-gems-${{ hashFiles('apps/*/Gemfile.lock') }}

- name: Setup os dependencies
run: |
sudo apt-get update
sudo apt-get install -y libsqlite3-dev
- name: Setup Bundler
run: |
bundle config path ~/vendor/bundle
Expand Down
21 changes: 9 additions & 12 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ stages:
- deploy

variables:
OOD_BUILD_REPO: '4.0'
GIT_STRATEGY: clone
GIT_DEPTH: 0
OOD_PACKAGING_DEBUG: 'true'
Expand All @@ -26,14 +27,11 @@ build-nightly:
- OOD_PACKAGING_DIST: [el8]
OOD_PACKAGING_ARCH: [x86_64, aarch64, ppc64le]
OOD_PACKAGING_GPG_PRIVATE_KEY: /systems/osc_certs/gpg/ondemand/ondemand.sec
- OOD_PACKAGING_DIST: [el9, debian-12]
- OOD_PACKAGING_DIST: [el9]
OOD_PACKAGING_ARCH: [x86_64, aarch64, ppc64le]
# Ubuntu doesn't have way to get NodeJS 14+ on ppc64le
- OOD_PACKAGING_DIST: [ubuntu-20.04, ubuntu-22.04]
# Ubuntu and Debian don't have way to get NodeJS 20+ on ppc64le
- OOD_PACKAGING_DIST: [ubuntu-20.04, ubuntu-22.04, ubuntu-24.04, debian-12]
OOD_PACKAGING_ARCH: [x86_64, aarch64]
# Ubuntu 24.04 on aarch64 is slow and will time out
- OOD_PACKAGING_DIST: [ubuntu-24.04]
OOD_PACKAGING_ARCH: [x86_64, ppc64le]
# Amazon 2023 on aarch64 is slow and will time out
- OOD_PACKAGING_DIST: [amzn2023]
OOD_PACKAGING_ARCH: [x86_64]
Expand All @@ -50,21 +48,20 @@ build:
# Re-enable once Gitlab instance using plugin to integrate with Github
# - if: '$CI_PIPELINE_SOURCE == "external_pull_request_event"'
- if: '$CI_COMMIT_BRANCH !~ /^(master|release_[0-9]\.[0-9])$/ && $CI_COMMIT_TAG == null'
variables:
VERSION: '$OOD_BUILD_REPO.0'
script:
- bundle exec rake package:build[$OOD_PACKAGING_DIST,$OOD_PACKAGING_ARCH]
parallel:
matrix:
- OOD_PACKAGING_DIST: [el8]
OOD_PACKAGING_ARCH: [x86_64, aarch64, ppc64le]
OOD_PACKAGING_GPG_PRIVATE_KEY: /systems/osc_certs/gpg/ondemand/ondemand.sec
- OOD_PACKAGING_DIST: [el9, debian-12]
- OOD_PACKAGING_DIST: [el9]
OOD_PACKAGING_ARCH: [x86_64, aarch64, ppc64le]
# Ubuntu doesn't have way to get NodeJS 14+ on ppc64le
- OOD_PACKAGING_DIST: [ubuntu-20.04, ubuntu-22.04]
# Ubuntu and Debian don't have way to get NodeJS 20+ on ppc64le
- OOD_PACKAGING_DIST: [ubuntu-20.04, ubuntu-22.04, ubuntu-24.04, debian-12]
OOD_PACKAGING_ARCH: [x86_64, aarch64]
# Ubuntu 24.04 on aarch64 is slow and will time out
- OOD_PACKAGING_DIST: [ubuntu-24.04]
OOD_PACKAGING_ARCH: [x86_64, ppc64le]
# Amazon 2023 on aarch64 is slow and will time out
- OOD_PACKAGING_DIST: [amzn2023]
OOD_PACKAGING_ARCH: [x86_64]
Expand Down
19 changes: 17 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
- Batch connect apps now respond to form_header to display a header in [3763](https://github.com/OSC/ondemand/pull/3763).
- auto_clusters now set maximums for auto_cores in [3778](https://github.com/OSC/ondemand/pull/3778).
- UIDs can now be returned by the mapper script in [3795](https://github.com/OSC/ondemand/pull/3795).
- XDMoD jobs widget now shows CPU, Memory and walltime in [3789](https://github.com/OSC/ondemand/pull/3789).
- Global batch connect form items can now be defined in ondemand.d files in [3840](https://github.com/OSC/ondemand/pull/3840).

### Changed
- Script models have been renamed to Launcher in [3397](https://github.com/OSC/ondemand/pull/3397).
Expand Down Expand Up @@ -55,6 +57,13 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
- The shell app now has configurations for ping ponging. Ping pongs are disabled by default, will only ping pong
for a certain duration after inactivity and the connections will close altogether after a certian duration regardless
of activity in [3805](https://github.com/OSC/ondemand/pull/3805) and [3810](https://github.com/OSC/ondemand/pull/3810).
- Empty directories can now be downloaded in [3841](https://github.com/OSC/ondemand/pull/3841).
- Batch Connect applications always lowercase ids for normalization for dynamic javascript in [3867](https://github.com/OSC/ondemand/pull/3867).
- This includes auto modules in [3905](https://github.com/OSC/ondemand/pull/3905).
- Batch connect applications always cast select_options to an array in [3872](https://github.com/OSC/ondemand/pull/3872).
- test, package and development gems are no longer installed in production in [3906](https://github.com/OSC/ondemand/pull/3906).
- A single cluster form item is now hidden, not fixed, allowing dynamic directives to work on single clusters in
[3931](https://github.com/OSC/ondemand/pull/3931).

### Fixed
- Ensure that the asset directory is clean when building in [3356](https://github.com/OSC/ondemand/pull/3356).
Expand All @@ -67,12 +76,18 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
- Download buttons will now be hidden for certain files like pipes in [3654](https://github.com/OSC/ondemand/pull/3654).
- Favorite file paths now consult the Allowlist in [3526](https://github.com/OSC/ondemand/pull/3526).
- The ood_portal.conf now accounts for /dex (dex_uri) when enabling maintenance mode in [3736](https://github.com/OSC/ondemand/pull/3736).
- mod_ood_proxy now correctly proxies for httpd 2.4.62 in [3728](https://github.com/OSC/ondemand/pull/3728)
and [3776](https://github.com/OSC/ondemand/pull/3776).
- mod_ood_proxy now correctly proxies for httpd 2.4.62 in [3728](https://github.com/OSC/ondemand/pull/3728),
[3776](https://github.com/OSC/ondemand/pull/3776) and [3791](https://github.com/OSC/ondemand/pull/3791).
- ood_auth_map now accounts for more than just \w for usernames in [3753](https://github.com/OSC/ondemand/pull/3753).
- Pipes and fifos no longer show as downloadable in [3718](https://github.com/OSC/ondemand/pull/3718).
- Allowlist compuations have been optimized in [3804](https://github.com/OSC/ondemand/pull/3804).
- data_field widgets now initialize their value to today in [3817](https://github.com/OSC/ondemand/pull/3817).
- Batch Connect cache files now correct serialize in [3819](https://github.com/OSC/ondemand/pull/3819).
- Uploads always succeed even when the chown operation afterwards fails in [3856](https://github.com/OSC/ondemand/pull/3856).
- Exceptions in dashboard widgets are correct rescued in [3873](https://github.com/OSC/ondemand/pull/3873).
- Select all in the files app will only select the visible rows in [3925](https://github.com/OSC/ondemand/pull/3925).
- Batch jobs now specify workdir, fixing issues with submit_host jobs in [3913](https://github.com/OSC/ondemand/pull/3913).
- Javascript that queires for atch connect sessions will create an alert div and stop polling if it fails in [3915](https://github.com/OSC/ondemand/pull/3915).

### Security

Expand Down
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ gem 'rake'
gem 'dotenv', '~> 2.1'

group :package do
gem 'ood_packaging', '~> 0.15.1'
gem 'ood_packaging', '~> 0.16.2'
end

group :test do
Expand Down
8 changes: 3 additions & 5 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ GEM
oga (3.3)
ast
ruby-ll (~> 2.1)
ood_packaging (0.15.1)
ood_packaging (0.16.2)
rake (~> 13.0.1)
open_uri_redirections (0.2.1)
parallel (1.21.0)
Expand All @@ -106,8 +106,7 @@ GEM
rake (13.0.6)
regexp_parser (2.1.1)
require_all (3.0.0)
rexml (3.3.6)
strscan
rexml (3.3.9)
rspec (3.10.0)
rspec-core (~> 3.10.0)
rspec-expectations (~> 3.10.0)
Expand Down Expand Up @@ -160,7 +159,6 @@ GEM
net-telnet (= 0.1.1)
sfl
stringify-hash (0.0.2)
strscan (3.1.0)
thor (1.2.1)
unicode-display_width (2.1.0)
vmfloaty (1.5.0)
Expand All @@ -179,7 +177,7 @@ DEPENDENCIES
beaker-docker (~> 1.4.0)
beaker-rspec
dotenv (~> 2.1)
ood_packaging (~> 0.15.1)
ood_packaging (~> 0.16.2)
rake
rspec
rubocop
Expand Down
5 changes: 3 additions & 2 deletions apps/dashboard/Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ source 'https://rubygems.org'


# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '7.0.8.4'
gem 'rails', '7.0.8.5'

# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
gem 'jbuilder', '~> 2.0'
Expand Down Expand Up @@ -46,6 +46,8 @@ end
gem 'nokogiri', '~> 1.15', '< 1.16'
gem 'net-imap', '~> 0.3', '< 0.4'
gem 'public_suffix', '~> 5.0', '< 6.0'
gem 'turbo-rails', '2.0.7'
gem 'zeitwerk', '2.6.18'

# Extra third-party gems
gem 'dotenv-rails', '~> 2.1'
Expand All @@ -63,7 +65,6 @@ gem 'rest-client', '~> 2.0'

gem 'jsbundling-rails', '~> 1.0'
gem 'cssbundling-rails', '~> 1.1'
gem 'turbo-rails', '~> 2.0'

# should upgrade to propshaft - only have an issue with fontawesome icons
gem 'sprockets-rails', '>= 2.0.0'
Expand Down
Loading

0 comments on commit 1797a92

Please sign in to comment.