-
Notifications
You must be signed in to change notification settings - Fork 7
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
Fix for result validation; Error in usage example #7
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks!
status::String | ||
success::Bool | ||
meas_level::Int | ||
circ_id::Int | ||
time_taken::Float64 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just to understand the change better cuz there are a lot format changes, is this the main update of the result schema?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, correct. Sorry for the formatting...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks! just need to wait for CI pass.
It seems the records are too old, causing CI to fail. Could you also update the records via https://github.com/JuliaTesting/BrokenRecord.jl ? |
I want to try, but I'm not familiar with that. So basically, I need to update the test/records/result.json with the content of the result.json I get from the usage example job, correct? However, they are very different, I'm guessing it's just the "body"? |
Or do I have to delete the file to let it generate again? Seems like I'm not authorized. But maybe the CI bot is? |
Yes, first replace the key with your own, and delete all the old files, the BrokenRecord should generate the new files for you, replace the key with the fake one. |
While trying to get this to work (I’m struggling a bit, maybe I need to ask some more questions later...), I noticed that the test for the menu doesn't work because it requires stdin to be a TTY (but it is an IOStream during the test). How do you say we proceed with that? |
Hmm, that's strange I wrote it the same way how stdlib test it. But I think we can mark this |
Alright. |
You don't need to create an account, that test account is fake as well. You just need to generate the record and then replace the account info in the test manually using grep. So that there is no valid credentials created in the CI |
Thank you for the help and your time! I created a new pull request that should work. #8 |
closed by #8 |
When running the usage example from the docs, there is an error when downloading the result.
Fixed it by adding meas_level and curc_id keys to the ExpResult schema.