Skip to content

Commit

Permalink
remove safe navigation operator before migration, add jruby 9.4, remo…
Browse files Browse the repository at this point in the history
…ve jruby 9.3
  • Loading branch information
anmarchenko committed Aug 21, 2023
1 parent 145b324 commit 8d0980a
Show file tree
Hide file tree
Showing 7 changed files with 25 additions and 38 deletions.
22 changes: 11 additions & 11 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -376,10 +376,10 @@ job_configuration:
<<: *config-3_2
resource_class_to_use: small
# ADD NEW RUBIES HERE
- &config-jruby-9_3
- &config-jruby-9_4
<<: *filters_all_branches_and_tags
ruby_version: 'jruby-9.3.9.0'
image: ghcr.io/datadog/dd-trace-rb/jruby:9.3.9.0-dd
ruby_version: 'jruby-9.4.0.0'
image: ghcr.io/datadog/dd-trace-rb/jruby:9.4.0.0-dd
resource_class_to_use: medium+

workflows:
Expand All @@ -401,7 +401,7 @@ workflows:
# - test-3.2
# - test-3.3
# # ADD NEW RUBIES HERE
# - test-jruby-9.3
# - test-jruby-9.4
# - orb/changelog:
# <<: *config-3_2-small
# name: changelog
Expand Down Expand Up @@ -454,13 +454,13 @@ workflows:
- build-3.3
# ADD NEW RUBIES HERE
- orb/build:
<<: *config-jruby-9_3
name: build-jruby-9.3
<<: *config-jruby-9_4
name: build-jruby-9.4
- orb/test:
<<: *config-jruby-9_3
name: test-jruby-9.3
<<: *config-jruby-9_4
name: test-jruby-9.4
requires:
- build-jruby-9.3
- build-jruby-9.4
# Release jobs
# - "deploy prerelease Gem":
# <<: *filters_all_branches_and_tags
Expand All @@ -472,7 +472,7 @@ workflows:
# - test-3.2
# - test-3.3
# # ADD NEW RUBIES HERE
# - test-jruby-9.3
# - test-jruby-9.4
# - "deploy release":
# <<: *filters_only_release_tags
# requires:
Expand All @@ -483,4 +483,4 @@ workflows:
# - test-3.2
# - test-3.3
# # ADD NEW RUBIES HERE
# - test-jruby-9.3
# - test-jruby-9.4
8 changes: 8 additions & 0 deletions .standard_todo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@
# Remove from this list as you refactor files.
---
ignore:
- lib/datadog/ci/contrib/minitest/integration.rb:
- Style/SafeNavigation
- lib/datadog/ci/contrib/cucumber/integration.rb:
- Style/SafeNavigation
- lib/datadog/ci/contrib/rspec/integration.rb:
- Style/SafeNavigation
- lib/datadog/ci/ext/environment.rb:
- Style/SafeNavigation
- spec/support/log_helpers.rb:
- Performance/UnfreezeString
- Appraisals:
Expand Down
23 changes: 0 additions & 23 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,21 +84,6 @@ services:
- bundle-3.3:/usr/local/bundle
- "ddagent_var_run:${TEST_DDAGENT_VAR_RUN}"
# ADD NEW RUBIES HERE
datadog-ci-jruby-9.3:
image: ghcr.io/datadog/dd-trace-rb/jruby:9.3.9.0-dd
command: /bin/bash
depends_on:
- ddagent
env_file: ./.env
environment:
<<: *common-environment
BUNDLE_GEMFILE: /app/Gemfile-jruby-9.3
stdin_open: true
tty: true
volumes:
- .:/app
- bundle-jruby-9.3:/usr/local/bundle
- "ddagent_var_run:${TEST_DDAGENT_VAR_RUN}"
datadog-ci-jruby-9.4:
image: ghcr.io/datadog/dd-trace-rb/jruby:9.4.0.0-dd
command: /bin/bash
Expand Down Expand Up @@ -131,20 +116,12 @@ services:
volumes:
- ddagent_var_run:/var/run/datadog
volumes:
bundle-2.1:
bundle-2.2:
bundle-2.3:
bundle-2.4:
bundle-2.5:
bundle-2.6:
bundle-2.7:
bundle-3.0:
bundle-3.1:
bundle-3.2:
bundle-3.3:
# ADD NEW RUBIES HERE
bundle-jruby-9.2:
bundle-jruby-9.3:
bundle-jruby-9.4:
ddagent_var_run:
# Temporary folder used while compiling the profiling native extension. We place this in a volume to avoid the
Expand Down
3 changes: 2 additions & 1 deletion lib/datadog/ci/contrib/cucumber/integration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ class Integration
register_as :cucumber, auto_patch: true

def self.version
Gem.loaded_specs["cucumber"]&.version
Gem.loaded_specs["cucumber"] \
&& Gem.loaded_specs["cucumber"].version
end

def self.loaded?
Expand Down
2 changes: 1 addition & 1 deletion lib/datadog/ci/contrib/minitest/integration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class Integration
register_as :minitest, auto_patch: true

def self.version
Gem.loaded_specs["minitest"]&.version
Gem.loaded_specs["minitest"] && Gem.loaded_specs["minitest"].version
end

def self.loaded?
Expand Down
3 changes: 2 additions & 1 deletion lib/datadog/ci/contrib/rspec/integration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ class Integration
register_as :rspec, auto_patch: true

def self.version
Gem.loaded_specs["rspec-core"]&.version
Gem.loaded_specs["rspec-core"] \
&& Gem.loaded_specs["rspec-core"].version
end

def self.loaded?
Expand Down
2 changes: 1 addition & 1 deletion lib/datadog/ci/ext/environment.rb
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def normalize_ref(name)
end

def filter_sensitive_info(url)
url&.gsub(%r{(https?://)[^/]*@}, '\1')
url.gsub(%r{(https?://)[^/]*@}, '\1') unless url.nil?
end

# CI providers
Expand Down

0 comments on commit 8d0980a

Please sign in to comment.