Skip to content

[_]: ci/simplify obfuscation process#1974

Open
xabg2 wants to merge 3 commits into
masterfrom
ci/obfuscation-process
Open

[_]: ci/simplify obfuscation process#1974
xabg2 wants to merge 3 commits into
masterfrom
ci/obfuscation-process

Conversation

@xabg2

@xabg2 xabg2 commented May 27, 2026

Copy link
Copy Markdown
Contributor

Description

Simplify theobfuscation process so the build takes less time (from 1min 30 secs to 30 secs).

Related Issues

Related Pull Requests

Checklist

  • Changes have been tested locally.
  • Unit tests have been written or updated as necessary.
  • The code adheres to the repository's coding standards.
  • Relevant documentation has been added or updated.
  • No new warnings or errors have been introduced.
  • SonarCloud issues have been reviewed and addressed.
  • QA Passed

Testing Process

Additional Notes

Summary by CodeRabbit

  • Chores
    • Updated build-time obfuscation settings.
    • Simplified the string-handling configuration and tuned obfuscation parameters for a more consistent output.

@xabg2 xabg2 self-assigned this May 27, 2026
@xabg2 xabg2 requested review from CandelR and larryrider as code owners May 27, 2026 07:58
@xabg2 xabg2 added the enhancement New feature or request label May 27, 2026
larryrider
larryrider previously approved these changes May 27, 2026

@CandelR CandelR left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need to obsufascate the env vars

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented May 27, 2026

Copy link
Copy Markdown

Deploying drive-web with  Cloudflare Pages  Cloudflare Pages

Latest commit: 5eb20e8
Status: ✅  Deploy successful!
Preview URL: https://1ebf56e0.drive-web.pages.dev
Branch Preview URL: https://ci-obfuscation-process.drive-web.pages.dev

View logs

@sonarqubecloud

Copy link
Copy Markdown

@xabg2 xabg2 requested review from CandelR and larryrider May 27, 2026 08:27
@github-actions

Copy link
Copy Markdown

This pull request has been inactive for 30 days. Is it still in progress? If so, please leave a comment or make an update to keep it open. Otherwise, it will be closed automatically in 15 days.

@coderabbitai

coderabbitai Bot commented Jul 6, 2026

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 7e523d98-d6cb-459b-aef1-65c8c7310a88

📥 Commits

Reviewing files that changed from the base of the PR and between ae2ae97 and 5eb20e8.

📒 Files selected for processing (1)
  • vite.config.mts

📝 Walkthrough

Walkthrough

This change modifies the vite-plugin-bundle-obfuscator configuration in vite.config.mts, restricting string-array encoding to rc4, adjusting wrapper count and chunk length values, and disabling stringArrayCallsTransform, transformObjectKeys, and unicodeEscapeSequence options.

Changes

Obfuscator Configuration Update

Layer / File(s) Summary
String-array obfuscation settings
vite.config.mts
Restricted stringArrayEncoding to rc4, reduced stringArrayWrappersCount to 2, increased splitStringsChunkLength to 8, and disabled stringArrayCallsTransform, transformObjectKeys, and unicodeEscapeSequence options along with related threshold settings.

Estimated code review effort: 1 (Trivial) | ~5 minutes

Related PRs: None identified.

Suggested labels: build, config

Suggested reviewers: None identified.

🐰 A tweak here, a switch there,
Obfuscation trimmed with care,
RC4 alone now guards the code,
Fewer wrappers on this road,
Hop along, the config's light! 🥕

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title matches the main change: simplifying the obfuscation process to reduce CI build time.
Description check ✅ Passed The description covers the main summary and checklist, with only the testing process and additional notes sections left empty.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch ci/obfuscation-process

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@sonarqubecloud

sonarqubecloud Bot commented Jul 6, 2026

Copy link
Copy Markdown

@github-actions github-actions Bot removed the stalled label Jul 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants