Skip to content

Make file count validation to not do remote path checks - #6507

Closed
andrewnester wants to merge 4 commits into
mainfrom
fix/sync-no-validate
Closed

andrewnester wants to merge 4 commits into
mainfrom
fix/sync-no-validate

Conversation

@andrewnester

@andrewnester andrewnester commented Sep 3, 2026 •

Copy link
Copy Markdown
Contributor

Changes

Make file count validation to not do remote path checks

Why

files_to_validate check which is run on bundle validate and only used to count local files to be uploaded did a remote calls to check that remote paths are there even though it should not

Discovered in #6084 where the remote path is not known and existent until the deploy

Tests

Covered by existing acceptance tests

@github-actions

github-actions Bot commented Sep 3, 2026 •

Copy link
Copy Markdown
Contributor

Approval status: pending

/acceptance/bundle/ - needs approval

5 files changed
Suggested: @pietern
Also eligible: @denik, @shreyas-goenka, @anton-107, @janniklasrose, @lennartkats-db

/bundle/ - needs approval

Files: bundle/config/validate/files_to_sync_test.go, bundle/deploy/files/sync.go
Suggested: @pietern
Also eligible: @denik, @shreyas-goenka, @anton-107, @janniklasrose, @lennartkats-db

/libs/sync/ - needs approval

Files: libs/sync/sync.go
Suggested: @simonfaltum
Also eligible: @renaudhartert-db, @hectorcast-db, @parthban-db, @tanmay-db, @Divyansh-db, @tejaskochar-db, @mihaimitrea-db, @chrisst, @rauchy

Any maintainer (@anton-107, @denik, @pietern, @shreyas-goenka, @simonfaltum, @renaudhartert-db, @janniklasrose, @lennartkats-db, @rugpanov, @rclarey) can approve all areas.
See OWNERS for ownership rules.

@eng-dev-ecosystem-bot

Copy link
Copy Markdown
Collaborator

Integration test report

Commit: 3a6f21e

Run: 34124066092

Env 💚​RECOVERED ✅​pass 🙈​skip Time
💚​ aws linux 1 275 20 8:46
💚​ aws windows 1 277 18 6:50
💚​ azure linux 1 274 20 10:19
💚​ azure windows 1 276 18 6:55
💚​ gcp linux 1 275 20 9:55
💚​ gcp windows 1 277 18 7:24
Test Name aws linux aws windows azure linux azure windows gcp linux gcp windows
💚​ TestAccept 💚​R 💚​R 💚​R 💚​R 💚​R 💚​R
Top 8 slowest tests (at least 2 minutes):
duration env testname
4:06 aws windows TestAccept
3:56 azure linux TestAccept
3:50 gcp windows TestAccept
3:49 gcp linux TestAccept
3:44 aws linux TestAccept
3:43 azure windows TestAccept
2:33 aws windows TestFilerWorkspaceFilesExtensionsDelete
2:09 azure windows TestFilerWorkspaceFilesExtensionsReadDir

@andrewnester

Copy link
Copy Markdown
Contributor Author

Closing with

This means we no longer check that the remote path is usable when running bundle validate. Seems bad?
E.g. if you hardcode another user's home dir, bundle validate should fail.

Related to #5528
#5948

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.

2 participants