Comments (4)
I think this is a larger issue of the autograding action's not being able to check multi-line outputs with regexes. My regex tests are failing for multi-line outputs as well.
from autograding.
I think this is because autograding is treating a failed match as an error.
Error messages are escaped in core. \n
is replaced with %0A
. I assume stdout from processes is also escaped and error messages are escaped seperately because it's assummed the process that triggered the error has exited. When the logs are displayed, the escaped charaters are substituted back.
Except, autograding hasn't exited. It's still running through the rest of the tests. So the error message gets sent to the log, where it is escaped again. Since '%' is an escaped charater, when the log is displayed, the workflow interface can't substitute %0A
back to \n
because it thinks it's substituting %250A
back to %0A
.
TL:DR; failed match messages are being escaped twice. The solution is to not throw an error when a match fails (because failed matches are an expected outcome ;).
from autograding.
@daveavis Hello, I'm wondering if you resolved this issue because I'm having the same problem.
from autograding.
Indeed, this is still a problem
from autograding.
Related Issues (20)
- Error : File not found: '/home/runner/work/_actions/education/autograding/v1/./dist/index.js' HOT 3
- Bug: Recurring issue with the autograding process in GitHub Actions for GitHub Classroom after today's release HOT 12
- Achieving finer granularity HOT 1
- Request for Support for Partial Grading based on Passed Test Cases HOT 1
- Autograding with points stops working if any tests are edited HOT 13
- Support for variables in autograding.json
- debug flag
- quiet flag for tests
- override/configure shell
- pre-conditions fΓΌr tests
- output checks should support stdout + stderr
- please add readme HOT 2
- Setting points via other actions
- Need an example for multiple tests adding up to 100 HOT 3
- Auto-grading Support for Scala HOT 2
- Node 12 Deprecation HOT 5
- Autograding action not able to read GitHub Secrets (Actions) HOT 6
- Unable to run command test for a go program HOT 1
- set-output command is deprecated warning when running education/autograding action
- Need help with autograding HTML files. HOT 3
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 autograding.