I1265 add per problem per minute throttling strategy#1267
Open
clevengr wants to merge 3 commits into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description of what the PR does
MaxSubmissionsPerMinutePerProblemwhich supports submission threshholds on a Per-Problem basis.Issue which the PR addresses
Fixes #1265
Environment in which the PR was developed (OS,IDE, Java version, etc.)
Windows 11, java version "1.8.0_381"
Precise steps for testing the PR:
--load sumithello.Shadow Proxy Teampermission. This is done as follows:Configure Contest -> Accountstab, select theGeneratebutton.Generate Accounts for Site 1button.Generate AccountdialogEditbutton.Shadow Proxy Teamcheck box, and press Update.CCS Test Mode. This is done as follows:Configure Contest -> Settingstab, scroll all the way to the bottom, and check theEnable CCS Test Modein the CCS Test Mode group box, then press theUpdatebutton.Web Servicestab, press theStartbutton to start the CLICS event feeder.Timestab to start the contest running.Run Contest -> Runstab on the administrator client.python bin/pc2submit -u https://localhost:50443 -t 1 -p a -y samps/src/hello.cpp.-t 1) for Problem A (-p a).Runstab.Submission threshold exceeded - wait a minute and try again.pc2v9.inifile and add (or change) the lines toward the end of the file as shown:pc2v9.inifile to use the new throttle settings.Startbutton on the event feeder client to start the CLICS API.Submission threshold exceeded - wait a minute and try again.-p ato-p b. This will make a submission in the same minute BUT FOR A DIFFERENT PROBLEM (B)../bin/pc2wti.http://localhost:8080and login credentials "team1/team1".Submission threshhold exceeded.(If you don't get the rejection message on the 7th submission, look at the WTI
Runstab and verify that all seven have the SAME "Time" value. If not, you didn't get all the submissions in during the same wall-time minute and therefore you might not have gotten them all within the same 60-second threshhold.)pc2v9.inifile IN THE WTI DISTRIBUTION FOLDER by adding the following to the bottom: