Skip to content

Conversation

@devin-ai-integration
Copy link
Contributor

@devin-ai-integration devin-ai-integration bot commented Feb 2, 2026

Closes #129

Summary

When running in Devin's environment, the GOPLS_PARALLEL default of 1 is suboptimal since Devin has multiple CPU cores available. This PR automatically detects Devin's environment and sets GOPLS_PARALLEL to (number of CPU cores - 1) for better lint performance.

Changes

  • Detect Devin's environment by checking for /opt/.devin directory
  • When in Devin's environment and GOPLS_PARALLEL is not explicitly set, default to (nproc - 1) cores
  • Preserve existing behavior: explicit GOPLS_PARALLEL env var takes precedence, and non-Devin environments still default to 1

Human Review Checklist

  • Verify /opt/.devin is an appropriate detection mechanism for Devin's environment
  • Confirm the arithmetic handles edge cases (e.g., single-core systems)
  • Check that CI behavior is unchanged (CI sets GOPLS_PARALLEL=4 explicitly)

Link to Devin run: https://app.devin.ai/sessions/8071a212d2f0411b881ad626351e1eaf
Requested by: Greg Slepak (@taoeffect)


Open with Devin

Closes #129

When running in Devin's environment (detected by /opt/.devin directory),
automatically set GOPLS_PARALLEL to (number of CPU cores - 1) for better
performance. This allows Devin to take advantage of its multi-core
environment while still leaving one core available for other tasks.

The explicit GOPLS_PARALLEL env var still takes precedence if set,
and non-Devin environments still default to 1 (sequential) to avoid
memory pressure on local machines.

Co-Authored-By: Greg Slepak <contact@taoeffect.com>
@devin-ai-integration
Copy link
Contributor Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

Copy link
Contributor Author

@devin-ai-integration devin-ai-integration bot left a comment

Choose a reason for hiding this comment

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

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no potential bugs to report.

View in Devin Review to see 4 additional flags.

Open in Devin Review

@eighttrigrams eighttrigrams merged commit 2a89bcc into master Feb 3, 2026
32 checks passed
@eighttrigrams eighttrigrams deleted the devin/1770048061-gopls-parallel-devin branch February 3, 2026 16:32
@eighttrigrams
Copy link
Member

greg confirmed it works in devin

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.

Wrong GOPLS_PARALLEL for Devin

1 participant