Skip to content

chore(deps): bump golang.org/x/net from 0.32.0 to 0.38.0 in /test#1

Closed
dependabot[bot] wants to merge 27 commits intomainfrom
dependabot/go_modules/test/golang.org/x/net-0.38.0
Closed

chore(deps): bump golang.org/x/net from 0.32.0 to 0.38.0 in /test#1
dependabot[bot] wants to merge 27 commits intomainfrom
dependabot/go_modules/test/golang.org/x/net-0.38.0

Conversation

@dependabot
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Aug 29, 2025

Bumps golang.org/x/net from 0.32.0 to 0.38.0.

Commits
  • e1fcd82 html: properly handle trailing solidus in unquoted attribute value in foreign...
  • ebed060 internal/http3: fix build of tests with GOEXPERIMENT=nosynctest
  • 1f1fa29 publicsuffix: regenerate table
  • 1215081 http2: improve error when server sends HTTP/1
  • 312450e html: ensure <search> tag closes <p> and update tests
  • 09731f9 http2: improve handling of lost PING in Server
  • 55989e2 http2/h2c: use ResponseController for hijacking connections
  • 2914f46 websocket: re-recommend gorilla/websocket
  • 99b3ae0 go.mod: update golang.org/x dependencies
  • 85d1d54 go.mod: update golang.org/x dependencies
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    You can disable automated security fix PRs for this repo from the Security Alerts page.

moshloop and others added 27 commits July 31, 2025 14:53
- Add TARGET_VERSION environment variable to docker run command in run-upgrade task
- Create specific tasks for upgrading to intermediate versions (14->15, 14->16, 15->16)
- Update Makefile to use the correct task names for intermediate version upgrades
- Remove incorrect working-directory references from workflow steps
- Simplify workflow trigger paths to work with standalone repository
- Fix upgrade test tasks to support intermediate PostgreSQL versions
- Add TARGET_VERSION environment variable to Docker containers
…on modes

- Add support for command line arguments (legacy mode) for workflows that pass FROM_VERSION TO_VERSION
- Keep auto-detection mode for workflows that mount data volumes without arguments
- Improve error handling with clear usage instructions
- Mount PostgreSQL data to correct directories expected by docker-upgrade-multi
- Create target version directories before upgrade
- Ensure proper permissions for test data directories
- Change pre-upgrade to run:pre-upgrade-check
- Change post-upgrade to run:post-upgrade-check
- These match the actual task names defined in Taskfile.run.yaml
- Remove 'internal: true' from both tasks so they can be called by docker-upgrade-multi script
- These tasks need to be accessible from the command line for the upgrade process to work
- Keep postgres as the superuser (required for pg_upgrade)
- Create testuser as a regular user, not as POSTGRES_USER
- Remove unnecessary environment variables from upgrade step
- This should fix the 'role postgres does not exist' error
- The --link flag requires both data directories to be on the same filesystem
- When using separate volume mounts for different PostgreSQL versions, they're on different filesystems
- This causes the 'Invalid cross-device link' error
- Using copy mode instead of link mode will be slower but will work correctly
- Add verbose output to pg_upgrade commands for better debugging
- Add --retain flag to keep upgrade logs for troubleshooting
- Add 10-minute timeout to upgrade steps to prevent indefinite hanging
- Add echo statements to show progress during upgrades
…tartup

- Remove PostgreSQL server startup from post-upgrade checks
- Use pg_controldata to verify the upgraded cluster instead
- Check for essential configuration files
- This avoids the hanging issue when trying to start PostgreSQL in the container
- Remove volume cloning, use mounted seed scripts instead
- Preserve volumes on failure for debugging
- Ensure stdout/stderr properly captured and returned
- Remove unnecessary data copying, use pg_upgrade --link
- Update test framework to not auto-delete on failures
- Remove silent flags from tasks for better visibility
- Simplify docker-entrypoint to delegate to Taskfile
- Add smart auto-detection and upgrade with PG_VERSION env var
The Docker build was failing because the Dockerfile specified exact PostgreSQL
package versions that are no longer available in the APT repository:
- postgresql-14='14.18-1.pgdg120+1'
- postgresql-15='15.13-1.pgdg120+1'
- postgresql-16='16.9-1.pgdg120+1'

This commit removes the version pinning, allowing apt-get to install the
latest available patch version for each major PostgreSQL version. This
prevents future build failures when patch versions are updated in the
repository.
- Remove --link flags from all pg_upgrade commands to use copy mode instead
  of hard-linking files, which is safer for containerized environments
- Add echo statements before all PostgreSQL commands (pg_upgrade,
  pg_controldata, initdb, pg_ctl, psql) for better debugging visibility
- This should resolve test failures where linking mode was causing issues

Changes made:
- upgrade-single task: removed --link flags and added debug output
- run-pg-upgrade task: removed --link flags and added debug output
- All pg_* commands now echo the exact command being executed
…dling

- Replace symlink-based data management with content-only moves
  - Move contents of /var/lib/postgresql/data to backups/ directory
  - Preserve backups directory inside main data volume
  - Move upgraded contents back after upgrade completion

- Add comprehensive WAL/LSN logging before and after upgrades
  - Log Latest checkpoint location, REDO location, NextXID
  - Log Database system identifier, pg_control version
  - Display cluster state information for debugging

- Fix 'cluster not cleanly shut down' warnings
  - Add proper pg_ctl stop before pg_controldata checks
  - Use fast shutdown mode with wait for clean shutdown
  - Sleep after shutdown to ensure complete stop

- Enhance error handling and debugging visibility
  - More detailed pre/post upgrade cluster state logging
  - Better error messages for cluster verification failures

These changes should eliminate upgrade warnings and provide better
visibility into the upgrade process for troubleshooting.
- Fix upgrade-single paths:
  - PGDATAOLD: /var/lib/postgresql/data (main data directory)
  - PGDATANEW: /var/lib/postgresql/data/upgrades/{TO_VERSION}

- Update auto-upgrade and sequential-upgrade tasks to use correct structure:
  - All operations work within /var/lib/postgresql/data volume
  - Upgrades use /var/lib/postgresql/data/upgrades/ subdirectory
  - After each upgrade step, data is moved back to main location
  - Backups preserved in /var/lib/postgresql/data/backups/

- Directory structure:
  /var/lib/postgresql/data/                 # Main data (volume mount)
  /var/lib/postgresql/data/backups/         # Original data backups
  /var/lib/postgresql/data/upgrades/15/     # Temp PG15 upgrade cluster
  /var/lib/postgresql/data/upgrades/16/     # Temp PG16 upgrade cluster

This fixes the issue where logs showed incorrect paths like:
'PostgreSQL 14 cluster verified at /var/lib/postgresql/14/data'
instead of the correct:
'PostgreSQL 14 cluster verified at /var/lib/postgresql/data'
- Change test workflow to mount data to /var/lib/postgresql/data instead
  of version-specific paths like /var/lib/postgresql/15/data
- Use PG_VERSION environment variable for auto-upgrade target version
- Simplify ARM64 test to use auto-upgrade with docker-entrypoint.sh
- Update verification step to use same data directory approach

This aligns the test workflow with the updated container logic that
expects data in the standard /var/lib/postgresql/data location.

Before:
  -v test-data/15:/var/lib/postgresql/15/data
  -v test-data/16:/var/lib/postgresql/16/data

After:
  -v test-data/15:/var/lib/postgresql/data
  -e PG_VERSION=16
The auto-upgrade task was moving data to backups but leaving the main
/var/lib/postgresql/data directory empty, causing upgrade-single to fail
with 'No PostgreSQL cluster found'.

Fixed by:
- After backing up data to /var/lib/postgresql/data/backups/data-{version}
- Copy the backup back to /var/lib/postgresql/data/ before starting upgrades
- This ensures upgrade-single finds the data in the expected location

This completes the data flow:
1. Original data in /var/lib/postgresql/data
2. Move to /var/lib/postgresql/data/backups/data-15 (preserve)
3. Copy back to /var/lib/postgresql/data (for upgrade)
4. Upgrade creates new data in /var/lib/postgresql/data/upgrades/16
5. Move upgraded data back to /var/lib/postgresql/data
- Add missing test:clean task to Taskfile.test.yaml
- Fix Makefile task references (upgrade-14-to-15 -> upgrade-14-to-17)
- Remove invalid local commons replacement from test/go.mod
- Update module names to match repository structure

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

Co-Authored-By: Claude <noreply@anthropic.com>
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.32.0 to 0.38.0.
- [Commits](golang/net@v0.32.0...v0.38.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-version: 0.38.0
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file go Pull requests that update go code labels Aug 29, 2025
@dependabot dependabot bot added the go Pull requests that update go code label Aug 29, 2025
@moshloop moshloop closed this Sep 22, 2025
@dependabot @github
Copy link
Contributor Author

dependabot bot commented on behalf of github Sep 22, 2025

OK, I won't notify you again about this release, but will get in touch when a new version is available. If you'd rather skip all updates until the next major or minor version, let me know by commenting @dependabot ignore this major version or @dependabot ignore this minor version.

If you change your mind, just re-open this PR and I'll resolve any conflicts on it.

@dependabot dependabot bot deleted the dependabot/go_modules/test/golang.org/x/net-0.38.0 branch September 22, 2025 11:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file go Pull requests that update go code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant