-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
[JinJa2] Corrected the macro used for comments on the test file. #3373
[JinJa2] Corrected the macro used for comments on the test file. #3373
Conversation
That certainly resolves the uncertainty. One thought: what if the canonical-data changes and then the linked data is not the data that generated the tests. Perhaps add the datetime? |
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.
Nice!
@glennj - updated |
@ErikSchierboom For a PR that makes a trivial change to a large number of exercises, but will never change the pass/fail status of a previously submitted solution, can we opt-out of re-running the tests for every submitted solution? I asked this on the latest call, but Jeremy didn't see the question. @BethanyG wanted to know too. I remember that this was discussed a long time ago, but I don't know if the opt-out was implemented - I've never done it. |
No, there is no such thing. I'm not sure how we would implement that. Via a special marker in the commit message? |
That's the best way I can think of. Do you think it's worth implementing? I do. It seems like it can avoid creating gigantic backlogs in the test runners. |
This would update 114 exercises, if I am doing the math correctly. If you want to run a flagging experiment, you can regenerate all practice test files by running
|
Yeah, we probably want to postpone the merging of the changes a bit. Especially on a popular track like Python there will be a lot of churn. |
Cool. I've created exercism/exercism#6678. |
Another option: via a special label on the PR. But let's discuss in exercism/exercism#6678. |
FYI, We're working on this (and relatively close to a solution) but it's quite complex, and the consequences of getting it wrong aren't good for us, so we're just making sure all our 'i's are dotted and 't's are crossed :) |
And I very much appreciate that and the work that is going into it! 💙 Getting the escape sorted so that it works well for the platform will be great - there are a few potential changes on the horizon for Python that would trigger mass re-testing, and shouldn't:
..and more that I am probably forgetting. |
@ErikSchierboom @iHiD - checking in on this. Angel and I are in the process of cleaning up footer macros in practice exercises (which will trigger re-testing without a flag), as well as working our way to changing some syntax and making other adjustments. See #3419 for an example. Any ETA? 🙂 |
No, sorry :( We're incredibly busy with Insiders |
We did mention this yesterday though when going through open PRs actually. I think the work is basically done, we just need to deploy it and not blow everything up when we do so, which involves having the brainspace to think that through. Which, as Erik says, is something we're struggling for. I'm off next week, but we could commit to doing it the week after. |
Ugh. Note to self: |
@BethanyG We're getting closer to fixing the problem! |
9a5a89b
to
3fb7e4f
Compare
Note: The way the CI is currently set up, all tests are regenerated and then compared to the ones generated from the PR branch. But with datetime, that is always going to fail! 😂 So, falling back to date, since even hour increment might fail in some circumstances. Longer term, if time is needed, I will think through a diff skip of some sort. |
Per discussion on the forum
@ErikSchierboom @glennj - please feel free to edit/discuss/comment as you see fit.
Note
: This will fail CI until all the regenerated test files are added into it.This change, should we commit it and re-generate the test files, will show up for every practice exercise except:
Which need a JinJa2 template, canonical-data.json, or both.
Partial sample re-generated test file: