Skip to content

refactor: remove Gitpod configuration and build infrastructure - #7716

Merged
rfay merged 7 commits into
ddev:mainfrom
rfay:20251015_rfay_remove_gitpod
Oct 21, 2025
Merged

rfay merged 7 commits into
ddev:mainfrom
rfay:20251015_rfay_remove_gitpod

Conversation

@rfay

@rfay rfay commented Oct 17, 2025 •

Copy link
Copy Markdown
Member

The Issue

Gitpod Classic is deprecated and was removed on October 15, 2025. Users are already experiencing confusion when visiting Gitpod and seeing information about
"Gitpod Flex" or "Ona" which are unrelated. This PR removes all Gitpod Classic support from DDEV core while preserving Codespaces functionality.

Related:

Note: I allowed Claude Code to "Vibe code" on this between phases as I demonstrated Claude Code use in my Drupalcon Vienna BoF, DDEV: Contributing using Claude Code. I don't usually do that, but it was an effective way to demonstrate on a particularly straightforward issue like this.

This PR removes Gitpod support through five phases:

Phase 1: Configuration and Build Infrastructure

  • Removed .gitpod.yml workspace configuration
  • Removed containers/ddev-gitpod-base/ directory including Dockerfile, Makefile, and tests
  • Updated GitHub workflows to remove ddev-gitpod-base from builds, tests, and pushes
  • Updated containers/push-all.sh and .goreleaser.yml to remove gitpod-base references

Phase 2: Go Detection Functions

  • Removed IsGitpod() function from pkg/nodeps/utils.go
  • Removed TestIsGitpod() test from pkg/nodeps/utils_test.go
  • Removed DDEVEnvironmentGitpod constant from pkg/environment/environment.go

Phase 3: Runtime Logic Updates

  • Changed all IsGitpod() || IsCodespaces() checks to only check IsCodespaces()
  • Updated pkg/dockerutil files to remove Gitpod-specific host-gateway and NFS cases
  • Updated pkg/ddevapp files including router, config, ddevapp, utils, and compose template
  • Removed IS_GITPOD environment variable
  • Removed Gitpod URL generation logic
  • Removed Gitpod MTU network configuration workaround

Phase 4: Commands and Tests

  • Updated cmd/ddev/cmd/describe.go to only check Codespaces for URL display
  • Updated comments in cmd/ddev/cmd/start_test.go
  • Updated host launch command to remove GITPOD_INSTANCE_ID checks and gp preview usage

Phase 5: Documentation

  • Removed ddev-gitpod-base from container documentation
  • Removed Gitpod example from git provider documentation
  • Removed "GitPod" from .spellcheckwordlist.txt

Manual Testing Instructions

  1. Verify no Gitpod references remain:
    grep -ri "gitpod" . --exclude-dir=.git --exclude-dir=vendor
  2. (Should only find references in version-history.md and webserver pre-start.sh comments about old Gitpod issues)
  3. Test Codespaces functionality (if in Codespaces environment):
    - Router should be automatically omitted
    - Port bindings should default correctly
    - URLs should generate properly

Automated Testing Overview

  • Static analysis: make staticrequired passes (golangci-lint, markdownlint, mkdocs)
  • Build test: make succeeds
  • Unit tests: TestIsCodespaces passes
  • Environment detection: Verified environment detection still works correctly
  • Code formatting: gofmt applied to all modified Go files

No new tests were added as this is purely removal of deprecated functionality. Existing tests for Codespaces functionality remain and continue to pass.

Release/Deployment Notes

Breaking Changes:

  • The IsGitpod() function is removed. Any external code relying on this function will need updates.
  • The IS_GITPOD environment variable is no longer set in containers.
  • The DDEVEnvironmentGitpod constant is removed from pkg/environment.

Migration:

  • Users currently using Gitpod Classic should migrate to GitHub Codespaces or local development.
  • No migration path is provided as Gitpod Classic is being shut down by Gitpod itself.

Deployment:

  • No special deployment steps required.
  • Existing ddev-gitpod-base Docker images are not deleted from Docker Hub, but no new versions will be built.
  • The ddev/ddev-gitpod-launcher repository should be updated separately with a deprecation notice and archived.

Notes:

  • Codespaces support remains fully functional and unchanged in behavior.
  • All router omission, port binding, and URL generation logic for Codespaces continues to work as before.

rfay and others added 6 commits October 15, 2025 11:20
Remove Gitpod Classic support as it's deprecated (shutdown Oct 15, 2025).
This removes configuration files, container build definitions, and CI/CD
workflows for ddev-gitpod-base image.

- Remove .gitpod.yml workspace configuration
- Remove containers/ddev-gitpod-base directory
- Update GitHub workflows to remove gitpod-base builds and tests
- Update containers/push-all.sh and .goreleaser.yml

Refs ddev#6891

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
Remove IsGitpod() function, test, and environment constant as Gitpod
Classic is deprecated.

- Remove IsGitpod() function from pkg/nodeps/utils.go
- Remove TestIsGitpod() test from pkg/nodeps/utils_test.go
- Remove DDEVEnvironmentGitpod constant and case from pkg/environment/environment.go

Refs ddev#6891

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
Change all IsGitpod() || IsCodespaces() checks to only check IsCodespaces()
since Codespaces remains supported while Gitpod Classic is deprecated.

- Update pkg/dockerutil files to remove Gitpod-specific cases
- Update pkg/ddevapp files to change router, config, and environment logic
- Remove IS_GITPOD environment variable
- Remove Gitpod URL generation logic
- Remove Gitpod MTU network configuration
- Update comments to remove Gitpod references

Refs ddev#6891

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
Update CLI commands and tests to remove Gitpod-specific logic.

- Update describe.go to only check Codespaces for URL display
- Update start_test.go comment to remove Gitpod reference
- Update host launch command to remove GITPOD_INSTANCE_ID checks
- Remove 'gp preview' command usage for Gitpod

Refs ddev#6891

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
Remove all Gitpod references from documentation and examples.

- Remove ddev-gitpod-base from container documentation
- Remove Gitpod example from git provider documentation
- Remove GitPod from spellcheck wordlist

Refs ddev#6891

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
@github-actions

Copy link
Copy Markdown

@rfay rfay left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I think this is probably OK. The only reservation I have is that a couple of people probably use that ddev-gitpod-base for a docker-in-docker CI setup thing. But we have options for that and new images coming up...

@rfay
rfay marked this pull request as ready for review October 18, 2025 15:36
@rfay
rfay requested review from a team as code owners October 18, 2025 15:36
@rfay
rfay requested a review from stasadev October 18, 2025 15:36
@rfay

rfay commented Oct 20, 2025

Copy link
Copy Markdown
Member Author

I'm pinging @Realityloop about this since we'll be ending support for ddev/ddev-gitpod-base image, although the coming smaller images may work fine for him.

@BrianGilbert

Copy link
Copy Markdown

@rfay could the coming images be available before this one is removed, is there anything I can look at for the new smaller images yet?

@rfay

rfay commented Oct 20, 2025

Copy link
Copy Markdown
Member Author

I don't know of a reason to remove the existing images from hub.docker.com

@stasadev stasadev left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks good to me.

Comment thread .github/workflows/push-tagged-image.yml Resolved

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants