Comments (1)
This dovetails with error handling. What kind of errors do we have in Pedal?
- Student code errors are things that should be transformed into feedback. Student errors should never stop the ICS.
- System errors are bad and should probably give a productive error message.
- Instructor Control Script errors are also bad and should probably give a productive error message.
The latter two kinds of errors should be raise
d, that seems clear enough. And I guess logged? Or one of the other? I need to think a bit more about what this should look like exactly. Can we think of some cases of actual errors?
It's confusing because usually catchable exceptions are because you know the user can get things into an invalid state. But what situations in Pedal allow the instructor to get things into a bad state? Let's think about each tool:
- TIFA: This has no configuration, so that's not very exciting. It can have errors in some places, I guess, but those are things to fix in the code rather than to just raise as errors, aren't they?
- Sandbox: Perhaps if you set up an
input
wrong? - Assertions: Ah, yes, here's something where the user can make many mistakes regarding the values, right? They could pass in something that doesn't work in a context? But shouldn't we do type changes until something works? It's simpler for some of the cases where an invalid value is more likely, I suppose (e.g., didn't pass in a valid node name to
prevent_ast
).
So many of Pedal's tools are unconditional executions. You just call them and let them work. That's a tricky part of all this.
from pedal.
Related Issues (20)
- Port over docstring checker from curriculum-sneks?
- Final Feedback doesn't actually track considered feedback
- Sandbox File System Access
- Improve Documentation HOT 3
- System Arguments HOT 4
- Plotting too many things in assert_plot gives a bad error message
- Making Mocking Easier
- Alternative simple syntax for unit_test to be used as a with context
- VSCode vs Terminal
- CAIT Error Messages could be cleaner
- Always provide source code context
- Decorators for giving partial credit on test_ functions
- Make sure assert_regex is tested (and works) HOT 1
- Support md/html modes in Gradescope environment
- Reconsider gently/explain's score mechanism HOT 6
- Bulk grading export/output for canvas and other lms
- Global Feedback Registry
- Enhancement Flags for Source and Sandbox modules
- Deterministically Randomized Feedback for A/B Testing HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pedal.