Skip to content

fix: resolve failing filebrowser tests #173

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
Jul 3, 2025

Conversation

DevelopmentCats
Copy link
Contributor

Description

  • Increase timeouts for tests so that they reliably succeed.
  • Remove filebrowser admin user creation since noauth is set
  • Remove duplicate log declaration in coder_script

Type of Change

  • New module
  • Bug fix
  • Feature/enhancement
  • Documentation
  • Other

Module Information

Path: registry/[namespace]/modules/filebrowser
New version: v1.1.1
Breaking change: [ ] Yes [X] No


Testing & Validation

  • Tests pass (bun test)
  • Code formatted (bun run fmt)
  • Changes tested locally

Related

(https://github.com/coder/registry/actions/runs/15975017391/job/45055105439?pr=160)

This commit fixes a duplicate `await` in the `filebrowser` module's test file, ensuring proper execution of the `executeScriptInContainer` function. Additionally, a baseline test has been added to validate the output of the script execution.
…t since it was causing failure because of empty password and is not needed since noauth is set
@DevelopmentCats DevelopmentCats marked this pull request as draft July 3, 2025 01:43
@DevelopmentCats
Copy link
Contributor Author

so I removed the admin user creation for logging into the file browser since it was failing the install due to new password requirements, and it was previously blank.

Everything appears to work and install fine, but it still prompts with a login window, so I will look into how we can suppress that or a way to create an admin user with a simple password

Copy link
Member

@matifali matifali left a comment

Choose a reason for hiding this comment

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

LGTM if tests pass and you have tested it.

…setup in run script in order to satisfy fb user requirements
@DevelopmentCats DevelopmentCats marked this pull request as ready for review July 3, 2025 04:04
@DevelopmentCats DevelopmentCats merged commit 358f47b into main Jul 3, 2025
4 checks passed
@DevelopmentCats DevelopmentCats deleted the cat/filebrowser-test-fix branch July 3, 2025 04:04
ssncferreira added a commit to coder/coder that referenced this pull request Jul 8, 2025
Workspaces with `Write Coder on Coder` template are failing with an
error in the agent related to File Browser:
```
2025/07/08 14:00:29 Using database: /home/coder/filebrowser.db  
2025/07/08 14:00:29 password is too short, minimum length is 12
```
Updating filebrowser module version to 1.1.1:
coder/registry#173
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