Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Nov 20 09:22
    josalhor closed #1123
  • Nov 20 09:22
    josalhor commented #1123
  • Nov 20 08:49
    wil93 commented #1123
  • Nov 19 16:53
    codecov[bot] commented #1143
  • Nov 19 16:52
    codecov[bot] commented #1143
  • Nov 19 16:43
    stefano-maggiolo edited #1143
  • Nov 19 16:43
    wil93 opened #1143
  • Nov 11 18:20
    edomora97 edited #1142
  • Nov 11 17:54
    codecov[bot] commented #1142
  • Nov 11 17:52
    codecov[bot] commented #1142
  • Nov 11 17:43
    stefano-maggiolo edited #1142
  • Nov 11 17:42
    edomora97 opened #1142
  • Oct 30 13:18
    codecov[bot] commented #1141
  • Oct 30 13:16
    codecov[bot] commented #1141
  • Oct 30 13:04
    codecov[bot] commented #1141
  • Oct 30 13:04
    edomora97 synchronize #1141
  • Oct 30 08:54
    codecov[bot] commented #1141
  • Oct 30 08:52
    codecov[bot] commented #1141
  • Oct 30 08:42
    codecov[bot] commented #1141
  • Oct 30 08:42
    edomora97 synchronize #1141
Robin Visser
@rvisser7
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?
Andrey Vihrov
@andreyv
I have an idea to check admin password strength using libpwquality (it has python bindings). Does this sound interesting?
Stefano Maggiolo
@stefano-maggiolo
imho seems a relatively week usecase (who's using passwords that are not generated by the browser these days?)
*weak
martinmarinov150402
@martinmarinov150402
hello all
I wanna ask you about Failures during evaluation
I made checker
and It seems to work to two solutions
but on third it cant evaluate
what should I do
Stefano Maggiolo
@stefano-maggiolo
hey
try debugging outside of cms - first make sure that the checker does what you think it does
read the documentation about checkers to make sure that you are following the rules
Huseyn Hajiyev
@computerbox_gitlab
hi ! i want to turn on logging service,but i have this error. how i can fix it ?
Traceback (most recent call last):
File "/usr/local/bin/cmsLogService", line 4, in <module>
import('pkg_resources').run_script('cms==1.4rc1', 'cmsLogService')
File "/usr/lib/python3/dist-packages/pkg_resources/init.py", line 658, in run_script
self.require(requires)[0].run_script(script_name, ns)
File "/usr/lib/python3/dist-packages/pkg_resources/init.py", line 1438, in run_script
exec(code, namespace, namespace)
File "/usr/local/lib/python3.6/dist-packages/cms-1.4rc1-py3.6.egg/EGG-INFO/scripts/cmsLogService", line 53, in <module>
sys.exit(main())
File "/usr/local/lib/python3.6/dist-packages/cms-1.4rc1-py3.6.egg/EGG-INFO/scripts/cmsLogService", line 47, in main
success = default_argument_parser("Logger for CMS.", LogService).run()
File "/usr/local/lib/python3.6/dist-packages/cms-1.4rc1-py3.6.egg/cms/util.py", line 231, in default_argument_parser
return cls(args.shard)
File "/usr/local/lib/python3.6/dist-packages/cms-1.4rc1-py3.6.egg/cms/service/LogService.py", line 55, in init
Service.init(self, shard)
File "/usr/local/lib/python3.6/dist-packages/cms-1.4rc1-py3.6.egg/cms/io/service.py", line 99, in init
self.initialize_logging()
File "/usr/local/lib/python3.6/dist-packages/cms-1.4rc1-py3.6.egg/cms/io/service.py", line 137, in initialize_logging
mode='w', encoding='utf-8')
File "/usr/lib/python3.6/logging/init.py", line 1032, in init
StreamHandler.init(self, self._open())
File "/usr/lib/python3.6/logging/init.py", line 1061, in _open
return open(self.baseFilename, self.mode, encoding=self.encoding)
FileNotFoundError: [Errno 2] No such file or directory: '/var/local/log/cms/LogService-0/2019-10-17-11-30-40.log'
Stefano Maggiolo
@stefano-maggiolo
most likely you missed some steps in the installation
prerequisite script in particular
if it doesn't help, make sure that /var/local/log/cms is readable and writable by the cmsuser group and that the user you're using to run the service is in that group
Huseyn Hajiyev
@computerbox_gitlab
thanks
it is working
Stefano Maggiolo
@stefano-maggiolo
aweoms
awesome
Edoardo Morassutto
@edomora97

Hi, I've just pushed the pull-request cms-dev/cms#1141 but the tests are failing.
In particular only https://github.com/cms-dev/cms/blob/de73b21cdc62bdecb3ae65a2eef0ff8b1fa65492/cmstestsuite/unit_tests/io/rpc_test.py#L234 fails saying Expected 'connect' to be called once. After a lot of digging we figured out that calling gevent.socket.getaddrinfo changes the value of the mocked method:

cms.io.rpc.gevent.socket.socket = <MagicMock name='socket' id='139905522845776'>
# call to gevent.socket.getaddrinfo
cms.io.rpc.gevent.socket.socket = <class 'gevent._socket3.socket'>

We have no idea how the mocking library works, do you have any idea?

Stefano Maggiolo
@stefano-maggiolo
yeah, no idea how to fix it, sorry
I tried browsing the gevent code but it's not the most digestible one
the only thing that comes to mind is to mock getaddrinfo too
Andrey Vihrov
@andreyv
https://openjdk.java.net/jeps/318 "JEP 318: Epsilon: A No-Op Garbage Collector"
Seems potentially useful for Java solution testing
Stefano Maggiolo
@stefano-maggiolo
uhm...
interesting, but I can see the appeals :D
Mark Dustin
@mark_dustin_gitlab
I have to setup a cms, i have nothing but heroku, the time is so less, I'm getting no idea, how and where to start. I know this is so dumb and stupid. But please, i'm feeling helpless. Can anybody help me out with a guideline?
Stefano Maggiolo
@stefano-maggiolo
just to make sure, you're talking about CMS, a grader for programming competition or a cms (content management system)?
if the former, please follow https://cms.readthedocs.io/en/v1.4/, if the latter you're in the wrong place
Mark Dustin
@mark_dustin_gitlab
no sir i'm talking about cms which is used in ioi, yes
Stefano Maggiolo
@stefano-maggiolo
ok, sorry about that
then please try to follow the documentation
Mark Dustin
@mark_dustin_gitlab
i read all this, but i think heroku platform is bit different, isn't it?
Stefano Maggiolo
@stefano-maggiolo
I never tried it, but I think I remember somebody using it
anyway, I expect that if you're careful enough to make sure the versions of python and packages are as expected, it should be fine
Edoardo Morassutto
@edomora97
@stefano-maggiolo good idea mocking getaddrinfo as well, implemented and added to the pull-request. Now all the tests pass!