Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(flags): add launch darkly integration #14130

Closed
wants to merge 22 commits into from
Closed

Conversation

aliu39
Copy link
Member

@aliu39 aliu39 commented Oct 29, 2024

Ref


Before submitting a pull request, please take a look at our
Contributing guidelines and verify:

  • If you've added code that should be tested, please add tests.
  • Ensure your code lints and the test suite passes (yarn lint) & (yarn test).

walk(filePath);
} else {
if (filePath.endsWith('.d.ts')) {
const content = fs.readFileSync(filePath, 'utf8');

Check failure

Code scanning / CodeQL

Potential file system race condition High

The file may have changed since it
was checked
.
const newContent = content.replace(preactImportRegex, '// replaced import from preact');

// and write the new content to the file
fs.writeFileSync(filePath, snippet + newContent, 'utf8');

Check failure

Code scanning / CodeQL

Potential file system race condition High

The file may have changed since it
was checked
.
@aliu39 aliu39 changed the title Aliu/launch darkly feat(flags): add launch darkly integration Oct 30, 2024
Copy link
Contributor

github-actions bot commented Oct 30, 2024

size-limit report 📦

Path Size % Change Change
@sentry/browser 22.96 KB +0.88% +203 B 🔺
@sentry/browser - with treeshaking flags 21.73 KB +0.87% +190 B 🔺
@sentry/browser (incl. Tracing) 35.39 KB +0.6% +216 B 🔺
@sentry/browser (incl. Tracing, Replay) 72.11 KB +0.3% +216 B 🔺
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 62.55 KB +0.36% +224 B 🔺
⛔️ @sentry/browser (incl. Tracing, Replay with Canvas) (max: 76.27 KB) 76.42 KB +0.27% +210 B 🔺
@sentry/browser (incl. Tracing, Replay, Feedback) 89.24 KB +0.25% +220 B 🔺
⛔️ @sentry/browser (incl. Feedback) (max: 40.04 KB) 40.08 KB +0.47% +188 B 🔺
@sentry/browser (incl. sendFeedback) 27.59 KB +0.7% +195 B 🔺
⛔️ @sentry/browser (incl. FeedbackAsync) (max: 32.23 KB) 32.4 KB +0.63% +207 B 🔺
@sentry/react 25.72 KB +0.81% +210 B 🔺
@sentry/react (incl. Tracing) 38.35 KB +0.53% +204 B 🔺
@sentry/vue 27.11 KB +0.78% +213 B 🔺
⛔️ @sentry/vue (incl. Tracing) (max: 37.11 KB) 37.27 KB +0.57% +214 B 🔺
@sentry/svelte 23.11 KB +0.95% +221 B 🔺
CDN Bundle 24.3 KB +0.81% +198 B 🔺
⛔️ CDN Bundle (incl. Tracing) (max: 37.11 KB) 37.2 KB +0.57% +213 B 🔺
CDN Bundle (incl. Tracing, Replay) 71.84 KB +0.26% +186 B 🔺
CDN Bundle (incl. Tracing, Replay, Feedback) 77.19 KB +0.25% +191 B 🔺
CDN Bundle - uncompressed 71.27 KB +0.86% +622 B 🔺
⛔️ CDN Bundle (incl. Tracing) - uncompressed (max: 110.35 KB) 110.4 KB +0.56% +624 B 🔺
CDN Bundle (incl. Tracing, Replay) - uncompressed 222.92 KB +0.28% +624 B 🔺
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 236.13 KB +0.26% +623 B 🔺
@sentry/nextjs (client) 38.42 KB +0.5% +195 B 🔺
@sentry/sveltekit (client) 35.98 KB +0.57% +207 B 🔺
@sentry/node 131.58 KB +0.05% +62 B 🔺
@sentry/node - without tracing 95.71 KB +0.07% +68 B 🔺
@sentry/aws-serverless 105.97 KB +0.06% +64 B 🔺

View base workflow run

packages/core/src/scope.ts Outdated Show resolved Hide resolved
packages/core/src/scope.ts Outdated Show resolved Hide resolved
@aliu39
Copy link
Member Author

aliu39 commented Nov 5, 2024

Notion doc by @cmanallen , summarizing constraints and potential approaches: https://www.notion.so/sentry/Feature-Flags-JavaScript-SDK-1358b10e4b5d805288abe1a4fede75ed?pvs=4

For now I'm cloning the current branch (approach 3), then going ahead with approach 1.

Copy link

codecov bot commented Nov 5, 2024

❌ 4 Tests Failed:

Tests completed Failed Passed Skipped
406 4 402 268
View the top 3 failed tests by shortest run time
async-context-edge.test.ts Should allow for async context isolation in the edge SDK
Stack Traces | 120s run time
async-context-edge.test.ts:4:5 Should allow for async context isolation in the edge SDK
client-errors.test.ts Sends a client-side exception to Sentry
Stack Traces | 120s run time
client-errors.test.ts:6:5 Sends a client-side exception to Sentry
connected-servercomponent-trace.test.ts Will create a transaction with spans for every server component and metadata generation functions when visiting a page
Stack Traces | 120s run time
connected-servercomponent-trace.test.ts:4:5 Will create a transaction with spans for every server component and metadata generation functions when visiting a page

To view individual test run time comparison to the main branch, go to the Test Analytics Dashboard

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants