cubicweb #5960820 unexplained api change in the schema [waiting feedback]

Traceback (most recent call last)
  File "/home/aurelien/confs/pythonianfr/logilab/common/testlib.py", line 515, in quiet_run
    func(*args, **kwargs)
  File "/home/aurelien/confs/pythonianfr/cubicweb/devtools/testlib.py", line 403, in setUp
    self._init_repo()
  File "/home/aurelien/confs/pythonianfr/cubicweb/devtools/testlib.py", line 309, in _init_repo
    db_handler.build_db_cache(self.test_db_id, self.pre_setup_database)
  File "/home/aurelien/confs/pythonianfr/cubicweb/devtools/__init__.py", line 494, in build_db_cache
    self.init_test_database()
  File "/home/aurelien/confs/pythonianfr/cubicweb/devtools/__init__.py", line 811, in init_test_database
    init_config=self.init_config)
  File "/home/aurelien/confs/pythonianfr/cubicweb/server/__init__.py", line 220, in init_repository
    repo = Repository(config, vreg=vreg)
  File "/home/aurelien/confs/pythonianfr/cubicweb/server/repository.py", line 183, in __init__
    self.init_cnxset_pool()
  File "/home/aurelien/confs/pythonianfr/cubicweb/server/repository.py", line 225, in init_cnxset_pool
    self.set_schema(config.load_schema(expand_cubes=True))
  File "/home/aurelien/confs/pythonianfr/cubicweb/server/serverconfig.py", line 323, in load_schema
    schema = CubicWebSchemaLoader().load(self, **kwargs)
  File "/home/aurelien/confs/pythonianfr/cubicweb/schema.py", line 1375, in load
    return super(CubicWebSchemaLoader, self).load(config, path=path, **kwargs)
  File "/home/aurelien/confs/pythonianfr/cubicweb/schema.py", line 1339, in load
    path, config.appid, register_base_types=False, **kwargs)
  File "/home/aurelien/confs/pythonianfr/cubes/container/site_cubicweb.py", line 37, in load
    post_build_callbacks=self.post_build_callbacks)
  File "/home/aurelien/confs/pythonianfr/yams/reader.py", line 89, in fill_schema
    erschema.check_permission_definitions()
  File "/home/aurelien/confs/pythonianfr/cubicweb/schema.py", line 892, in check_permission_definitions
    PermissionMixIn.check_permission_definitions(self)
  File "/home/aurelien/confs/pythonianfr/yams/schema.py", line 148, in check_permission_definitions
    'unknown action %s for %s' % (action, self)
AssertionError: unknown action read for docgroup

There is a post_build_callback with:

schema['docgroup'].permissions = {...}

Note that the traceback File "/home/aurelien/confs/pythonianfr/cubes/container/site_cubicweb.py", line 37, in load is actually a monkeypatch of SchemaLoader.load

priorityimportant
typebug
done in<not specified>
closed by<not specified>
patch[test/security] showcase for an api change (Related to #5960820) [rejected]