Skip to content

fix: patch upload.php and media_model.php for k6 load testing#209

Closed
sreeshanth-soma wants to merge 2 commits intoopenbroadcaster:5.5-developfrom
sreeshanth-soma:k6-testing
Closed

fix: patch upload.php and media_model.php for k6 load testing#209
sreeshanth-soma wants to merge 2 commits intoopenbroadcaster:5.5-developfrom
sreeshanth-soma:k6-testing

Conversation

@sreeshanth-soma
Copy link
Copy Markdown
Member

Found these while building the k6 load testing tool, the upload/media save pipeline has a few references that haven't been updated yet in the 5.5 refactor:

public/upload.php:

  • OBFControllerOpenBroadcaster\Base\Controller (class was renamed)
  • OB_UPLOADSOB_MEDIA_UPLOADS (constant renamed, 5 occurrences)

core/models/media_model.php:

  • OB_UPLOADSOB_MEDIA_UPLOADS (lines 1935, 2178)
  • mkdir($checkDir)mkdir($checkDir, 0755, true) (line 2806 — the other 3 mkdir calls in the same file already use recursive, this one was missed)

These are needed for the k6 load testing tool to exercise the upload/media save pipeline.

Temporary fixes to make the upload/media save pipeline work
while the 5.5 refactor is in progress:

- upload.php: OBFController → OpenBroadcaster\Base\Controller
- upload.php: OB_UPLOADS → OB_MEDIA_UPLOADS (5 occurrences)
- media_model.php: OB_UPLOADS → OB_MEDIA_UPLOADS (lines 1935, 2178)
- media_model.php: add recursive flag to mkdir() (line 2806)
@hinanaya
Copy link
Copy Markdown

hinanaya commented Apr 9, 2026

Fixed in 484673a without reverting OB_UPLOADS changes (see 7fe36cc and de498eb for changes to config format, updating config.php manually to match this is needed)

@hinanaya hinanaya closed this Apr 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants