Skip to content

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

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

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
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)
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.

1 participant