Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 12:51
    codecov[bot] commented #1139
  • 12:49
    codecov[bot] commented #1139
  • 12:41
    stefano-maggiolo edited #1139
  • 12:41
    andreyv opened #1139
  • Oct 10 21:08
    codecov[bot] commented #1138
  • Oct 10 21:06
    codecov[bot] commented #1138
  • Oct 10 20:57
    stefano-maggiolo edited #1138
  • Oct 10 20:57
    wil93 opened #1138
  • Oct 04 17:22
    tudurom commented #1137
  • Oct 04 17:14
    tudurom opened #1137
  • Sep 30 17:07
    CristianCantoro commented #1136
  • Sep 30 17:03
    andreyv commented #1136
  • Sep 30 16:51
    CristianCantoro closed #1136
  • Sep 30 16:51
    CristianCantoro commented #1136
  • Sep 30 14:28
    ray1422 commented #1136
  • Sep 30 14:27
    ray1422 commented #1136
  • Sep 30 14:26
    ray1422 commented #1136
  • Sep 30 14:25
    ray1422 commented #1136
  • Sep 30 14:25
    ray1422 commented #1136
  • Sep 30 14:24
    ray1422 commented #1136
Phan Nhật Minh
@Nhatminh2442001_twitter
@stefano-maggiolo yes, i did but i think when i use default config and will not do anything
Stefano Maggiolo
@stefano-maggiolo
not sure I understand - if you launched RWS, when ProxyService gives you that error, do you see any logs in RWS?
if not, then there is probably a mismatch in the address
between the configuration of PS in cms.conf and that of RWS in cms.ranking.conf
Phan Nhật Minh
@Nhatminh2442001_twitter
2019-09-04 15:35:52.062  WRN  Invalid data.
    http://localhost:8890/submissions/

    {'5': {'task': 'batch_5ffile', 'time': 1567586085, 'user': 'u1'}}

    Exception cmsranking.Entity.InvalidData:

        [entity 5] Inconsistent data

    Traceback (most recent call last):
    File "/home/minhphan/cms_venv/lib/python3.6/site-packages/cms-1.4rc1-py3.6.egg/cmsranking/RankingWebServer.py", line 216, in put_list
        self.store.merge_list(data)
      File "/home/minhphan/cms_venv/lib/python3.6/site-packages/cms-1.4rc1-py3.6.egg/cmsranking/Store.py", line 256, in merge_list
        raise exc
      File "/home/minhphan/cms_venv/lib/python3.6/site-packages/cms-1.4rc1-py3.6.egg/cmsranking/Store.py", line 250, in merge_list
        raise InvalidData("Inconsistent data")

::ffff:127.0.0.1 - - [2019-09-04 15:35:52] "PUT /submissions/ HTTP/1.1" 400 303 0.001005
Stefano Maggiolo
@stefano-maggiolo
mmm
for some reason the current data PS wants to send is imcompatible with the existing data in RWS
the easiest way is to clear the data in RWS
Andrey Vihrov
@andreyv
@stefano-maggiolo Thanks. Regarding multiple sources, something doesn't seem right here: https://github.com/cms-dev/cms/blob/master/cms/grading/languages/python3_cpython.py#L62
Suppose the submission format is two files, hello.%l,extra.%l. If something in extra.%l tries to import hello, then it will break because the file was renamed to __main__.pyc.
Stefano Maggiolo
@stefano-maggiolo
oh well
YMMV :)
you're going into a case which is the intersection of many rare cases
  1. multi-file batch
  1. using python
  1. with the need of the two file calling each other
in particular I think file calling each other is very rare - if you had that, you probably asked for a single file
Andrey Vihrov
@andreyv
yeah, well, I don't like leaving any open corner cases 😄
Stefano Maggiolo
@stefano-maggiolo
true, but you have to cut a line somewhere between what you want to support and what you drop
you'll always have corner cases when dealing with turing complete arbitrary inputs
(#notatheorem)
Andrey Vihrov
@andreyv
Anyway, this renaming of exactly one file does look a bit weird
Stefano Maggiolo
@stefano-maggiolo
I think it was done to allow to run the python code from the zip file
i vaguely remember that we looked for something like that but passed due to some issue - maybe only available for a high version of py3k?
anyway, if there's a better alternative I'm not opposing
Andrey Vihrov
@andreyv
Well, without requiring packages the "correct" solution is manually writing a __main__.py file which will import the first file
Which may or may not be overkill
Stefano Maggiolo
@stefano-maggiolo
(looking at the PR I don't see any comment relative to my vague recollection)
That won't work if your submission format is main.%l 😆
Andrey Vihrov
@andreyv
true 😄
Andrey Vihrov
@andreyv
Perhaps instead of renaming the first file can be symlinked.
Oh, but it is a zip archive
RezwanArefin01
@RezwanArefin01
Is there a way to see how many participants actually logged in a contest?
Stefano Maggiolo
@stefano-maggiolo
Might be, but using SQL
The participation table has a "first logging in time" used for usaco style contests
(where time starts from first log in)
I think we set it even if the contest isn't if that style
Robin Visser
@rvisser7
Hi there. I'm trying to evaluate a submission for an output-only task (with a custom checker). After submitting, the evaluation logs throw the following error:
2019-09-26 00:06:37,821 - ERROR [Evaluation,0 8 triggeredservice::run] Unexpected error when executing operation `evaluate on 5236 against dataset 181, testcase 24' (and 12 more operations).
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/cms-1.5.dev0-py3.6.egg/cms/io/triggeredservice.py", line 131, in run
    self.execute(to_execute)
  File "/usr/local/lib/python3.6/dist-packages/cms-1.5.dev0-py3.6.egg/cms/service/EvaluationService.py", line 140, in execute
    res = self.pool.acquire_worker(self._currently_executing)
  File "/usr/local/lib/python3.6/dist-packages/cms-1.5.dev0-py3.6.egg/cms/service/workerpool.py", line 214, in acquire_worker
    JobGroup.from_operations(operations, session).export_to_dict()
  File "/usr/local/lib/python3.6/dist-packages/cms-1.5.dev0-py3.6.egg/cms/grading/Job.py", line 677, in from_operations
    jobs.append(Job.from_operation(operation, object_, dataset))
  File "/usr/local/lib/python3.6/dist-packages/cms-1.5.dev0-py3.6.egg/cms/grading/Job.py", line 227, in from_operation
    job = EvaluationJob.from_submission(operation, object_, dataset)
  File "/usr/local/lib/python3.6/dist-packages/cms-1.5.dev0-py3.6.egg/cms/grading/Job.py", line 518, in from_submission
    language = get_language(submission.language)
  File "/usr/local/lib/python3.6/dist-packages/cms-1.5.dev0-py3.6.egg/cms/grading/languagemanager.py", line 48, in get_language
    raise KeyError("Language `%s' not supported." % name)
KeyError: "Language `None' not supported."
Any idea what's happening? Language shouldn't be a factor for output-only tasks?
Stefano Maggiolo
@stefano-maggiolo
is it possible you have a submission format element with a %l?
I actually can't match your stack trace with the code on github
maybe you did some local changes?
Robin Visser
@rvisser7
Yeah, we did make some minor local changes. I'll have another look
Robin Visser
@rvisser7
Ok, nvm, we fixed it. Sorry for your trouble 😂
Ilya Bychkov
@il-bychkov
image.png

Hi, guys! Thank you very much for such a great tool CMS.
I am using it to check student's homeworks.

I have a small dumb question. I dont know why, but the dashbord says every service is down.
Although I am able to edit contests, submit and have results.
Web pages of admin service, contest service are up and running.

Stefano Maggiolo
@stefano-maggiolo
this might be because you're using python 3.5?