Skip to content
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.

Removed empty key/value in validate_onboarding #4492

Closed
wants to merge 2 commits into from

Conversation

evelynkyl
Copy link

I removed submitted_data in validate_onboarding, as data was not in status_message and caused an empty value in the final_status

Patch description
In per_turn_eval's worlds.py, the function validate_onboarding was trying to get the variable data in the dict of status_message.But data does not exist in the status_message and it is causing final_status to always be None, therefore blocking all workers.

Here's the issue facebookresearch/Mephisto#748 where I wanted to reset onboarding qualification, I used a different worker id but found out validate_onboarding ended up keep blocking me because the final_status is always None.

Testing steps
Launch run.py and do onboarding. Perform onboarding correctly and incorrectly to test qualified and disqualified workers and check if data ever exists in status_message for this task.

Removed `submitted_data` in `validate_onboarding`, as `data` was not in `status_message` and caused an empty value in the `final_status`
@facebook-github-bot
Copy link

Hi @evelynkyl!

Thank you for your pull request and welcome to our community.

Action Required

In order to merge any pull request (code, docs, etc.), we require contributors to sign our Contributor License Agreement, and we don't seem to have one on file for you.

Process

In order for us to review and merge your suggested changes, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA.

Once the CLA is signed, our tooling will perform checks and validations. Afterwards, the pull request will be tagged with CLA signed. The tagging process may take up to 1 hour after signing. Please give it that time before contacting us about it.

If you have received this in error or have any questions, please contact us at cla@fb.com. Thanks!

@facebook-github-bot
Copy link

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Meta Open Source project. Thanks!

@facebook-github-bot
Copy link

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Meta Open Source project. Thanks!

12 similar comments
@facebook-github-bot
Copy link

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Meta Open Source project. Thanks!

@facebook-github-bot
Copy link

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Meta Open Source project. Thanks!

@facebook-github-bot
Copy link

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Meta Open Source project. Thanks!

@facebook-github-bot
Copy link

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Meta Open Source project. Thanks!

@facebook-github-bot
Copy link

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Meta Open Source project. Thanks!

@facebook-github-bot
Copy link

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Meta Open Source project. Thanks!

@facebook-github-bot
Copy link

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Meta Open Source project. Thanks!

@facebook-github-bot
Copy link

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Meta Open Source project. Thanks!

@facebook-github-bot
Copy link

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Meta Open Source project. Thanks!

@facebook-github-bot
Copy link

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Meta Open Source project. Thanks!

@facebook-github-bot
Copy link

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Meta Open Source project. Thanks!

@facebook-github-bot
Copy link

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Meta Open Source project. Thanks!

@JackUrb
Copy link
Contributor

JackUrb commented Apr 11, 2022

@EricMichaelSmith I'm surprised that per-turn eval was passing here before - does the current test not include onboarding?

Something we'll be looking at more as we develop an E2E testing framework for Mephisto tasks.

@facebook-github-bot
Copy link

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Meta Open Source project. Thanks!

Copy link
Contributor

@EricMichaelSmith EricMichaelSmith left a comment

Choose a reason for hiding this comment

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

Yeah, I think this fix is right, thanks @evelynkyl for adding - if you look at https://github.com/facebookresearch/ParlAI/pull/4426/files, this same fix was done for model_chat as part of the Mephisto 1.0 upgrade. However, it looks like a bunch of CI checks are failing now, for reasons that seem to be unrelated to this PR - can you maybe try doing a git merge from the main branch on facebookresearch to see if the breakages are just related to not having the most recent commits?

@JackUrb I had been afraid of this - unfortunately we haven't had time to put a unit test on per-turn eval yet. I'll ask around to see if anyone else has bandwidth for this currently

@JackUrb
Copy link
Contributor

JackUrb commented Apr 11, 2022

@EricMichaelSmith Feel free to defer for now - Mephisto shouldn't have any breaking changes prior to the E2E integration testing PR, so work fixing now would likely just be easier after that framework is provided.

@facebook-github-bot
Copy link

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Meta Open Source project. Thanks!

7 similar comments
@facebook-github-bot
Copy link

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Meta Open Source project. Thanks!

@facebook-github-bot
Copy link

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Meta Open Source project. Thanks!

@facebook-github-bot
Copy link

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Meta Open Source project. Thanks!

@facebook-github-bot
Copy link

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Meta Open Source project. Thanks!

@facebook-github-bot
Copy link

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Meta Open Source project. Thanks!

@facebook-github-bot
Copy link

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Meta Open Source project. Thanks!

@facebook-github-bot
Copy link

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Meta Open Source project. Thanks!

@facebook-github-bot
Copy link

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Meta Open Source project. Thanks!

@github-actions
Copy link

This PR has not had activity in 30 days. Closing due to staleness.

@github-actions github-actions bot added the stale label May 14, 2022
@JackUrb
Copy link
Contributor

JackUrb commented May 20, 2022

@EricMichaelSmith We should probably approve and merge this! Failing tests here seem unrelated to these changes.

@EricMichaelSmith
Copy link
Contributor

@EricMichaelSmith We should probably approve and merge this! Failing tests here seem unrelated to these changes.

@JackUrb Yeah fair enough - I just created a new PR for this at #4560 and tested that it fixes the issue. Closing this PR given that new one

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants