Skip to content
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

Dev skip project compilation #328

Merged
merged 4 commits into from
Apr 25, 2024
Merged

Conversation

frozenfrank
Copy link
Contributor

This minor adjustment gives DEV's the ability to skip compilation of projects as needed. In the process, I also broke the existing code into smaller functions which allows us to skip part of their functionality.

I'm currently using this to test #233 since I'm not interested in the actual grading results, and future dev's may want this option as well.

Ideally, there would exist a bank of options that allow developers the ability to skip any combination of the project evaluation based on their particular project. Ideally, those options would be available in some config object or ENV variable or command line option. However, since we don't have a whole system set up yet, this is only a lightweight adjustment to provide this functionality via a hard-coded local variable.

@frozenfrank frozenfrank added the enhancement New feature or request label Apr 24, 2024
@frozenfrank frozenfrank requested a review from pawlh April 24, 2024 16:42
@frozenfrank frozenfrank self-assigned this Apr 24, 2024
@@ -112,6 +89,45 @@ public void run() {
}
}

private Map<String, Rubric.Results> evaluateProject(RubricConfig rubricConfig) throws GradingException {
// NOTE: Ideally these would be treated with enum types. That will need to be improved with #300.
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Note that there is still lots of room for improvement as in #300, but this is only a lightweight adjustment for now.

Copy link
Collaborator

@pawlh pawlh left a comment

Choose a reason for hiding this comment

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

I'm cool with this as a temporary approach once the tests are passing again

@frozenfrank frozenfrank force-pushed the dev-skip-project-compilation branch from 4458f15 to fc4cb67 Compare April 25, 2024 07:26
@frozenfrank frozenfrank merged commit eb6bc53 into main Apr 25, 2024
2 checks passed
@frozenfrank frozenfrank deleted the dev-skip-project-compilation branch April 25, 2024 07:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants