From 023bba7647a01e650aa87f20a876e45e2047b791 Mon Sep 17 00:00:00 2001 From: Peter Solnica Date: Fri, 6 Jun 2025 11:14:57 +0000 Subject: [PATCH] [devcontainer] switch to /workspace/sentry This is less confusing otherwise we had: /workspace/sentry-ruby/sentry-ruby Which looked bad --- .devcontainer/devcontainer.json | 2 +- .devcontainer/docker-compose.yml | 2 +- sentry-ruby/spec/sentry/profiler_spec.rb | 4 ++-- sentry-ruby/spec/sentry/vernier/profiler_spec.rb | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 584d7b9da..13dfcf336 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -2,7 +2,7 @@ "name": "sentry-ruby", "dockerComposeFile": "docker-compose.yml", "service": "app", - "workspaceFolder": "/workspace/sentry-ruby", + "workspaceFolder": "/workspace/sentry", "customizations": { "vscode": { "extensions": [ diff --git a/.devcontainer/docker-compose.yml b/.devcontainer/docker-compose.yml index a8dddce38..484e24bc8 100644 --- a/.devcontainer/docker-compose.yml +++ b/.devcontainer/docker-compose.yml @@ -7,7 +7,7 @@ services: IMAGE: ${IMAGE} TAG: ${TAG} volumes: - - ..:/workspace/sentry-ruby:cached + - ..:/workspace/sentry:cached command: sleep infinity environment: - REDIS_URL=${REDIS_URL:-redis://redis:6379/0} diff --git a/sentry-ruby/spec/sentry/profiler_spec.rb b/sentry-ruby/spec/sentry/profiler_spec.rb index 4e36cc525..310ae0d59 100644 --- a/sentry-ruby/spec/sentry/profiler_spec.rb +++ b/sentry-ruby/spec/sentry/profiler_spec.rb @@ -239,7 +239,7 @@ expect(foo_frame[:in_app]).to eq(true) expect(foo_frame[:lineno]).to eq(7) expect(foo_frame[:filename]).to eq('spec/sentry/profiler_spec.rb') - expect(foo_frame[:abs_path]).to include('sentry-ruby/sentry-ruby/spec/sentry/profiler_spec.rb') + expect(foo_frame[:abs_path]).to include('sentry-ruby/spec/sentry/profiler_spec.rb') bar_frame = frames.find { |f| f[:function] =~ /bar/ } expect(bar_frame[:function]).to eq('Bar.bar') @@ -247,7 +247,7 @@ expect(bar_frame[:in_app]).to eq(true) expect(bar_frame[:lineno]).to eq(12) expect(bar_frame[:filename]).to eq('spec/sentry/profiler_spec.rb') - expect(bar_frame[:abs_path]).to include('sentry-ruby/sentry-ruby/spec/sentry/profiler_spec.rb') + expect(bar_frame[:abs_path]).to include('sentry-ruby/spec/sentry/profiler_spec.rb') sleep_frame = frames.find { |f| f[:function] =~ /sleep/ } expect(sleep_frame[:function]).to eq('Kernel#sleep') diff --git a/sentry-ruby/spec/sentry/vernier/profiler_spec.rb b/sentry-ruby/spec/sentry/vernier/profiler_spec.rb index a46c7900e..7b0398a66 100644 --- a/sentry-ruby/spec/sentry/vernier/profiler_spec.rb +++ b/sentry-ruby/spec/sentry/vernier/profiler_spec.rb @@ -188,7 +188,7 @@ expect(foo_frame[:in_app]).to eq(true) expect(foo_frame[:lineno]).to eq(6) expect(foo_frame[:filename]).to eq('spec/support/profiler.rb') - expect(foo_frame[:abs_path]).to include('sentry-ruby/sentry-ruby/spec/support/profiler.rb') + expect(foo_frame[:abs_path]).to include('sentry-ruby/spec/support/profiler.rb') end it 'has correct stacks' do @@ -274,7 +274,7 @@ expect(foo_frame[:in_app]).to eq(true) expect(foo_frame[:lineno]).to eq(6) expect(foo_frame[:filename]).to eq('spec/support/profiler.rb') - expect(foo_frame[:abs_path]).to include('sentry-ruby/sentry-ruby/spec/support/profiler.rb') + expect(foo_frame[:abs_path]).to include('sentry-ruby/spec/support/profiler.rb') end it 'has correct stacks', when: { ruby_version?: [:>=, "3.3"] } do