Skip to content

feat: WIP rbac

feat: WIP rbac #677

Triggered via pull request March 26, 2024 12:43
@benjackwhitebenjackwhite
synchronize #20864
rbac
Status Failure
Total duration 19m 45s
Artifacts

ci-backend-depot.yml

on: pull_request
Determine need to run backend checks
13s
Determine need to run backend checks
Matrix: async-migrations
Matrix: django
Python code quality checks
2m 12s
Python code quality checks
Validate Django migrations
2m 16s
Validate Django migrations
Calculate running time
0s
Calculate running time
Fit to window
Zoom out
Zoom in

Annotations

19 errors and 25 warnings
Python code quality checks: posthog/rbac/user_access_control.py#L41
Incompatible return value type (got "tuple[Literal['none', 'member', 'admin'], ...]", expected "list[Literal['none', 'member', 'admin', 'none', 'viewer', 'editor']]")
Python code quality checks: posthog/rbac/user_access_control.py#L43
Incompatible return value type (got "tuple[Literal['none', 'viewer', 'editor'], ...]", expected "list[Literal['none', 'member', 'admin', 'none', 'viewer', 'editor']]")
Python code quality checks: posthog/rbac/user_access_control.py#L48
Incompatible return value type (got "str", expected "bool")
Python code quality checks: posthog/rbac/user_access_control.py#L49
Incompatible return value type (got "str", expected "bool")
Python code quality checks: posthog/rbac/user_access_control.py#L53
Incompatible return value type (got "Literal['none', 'member', 'admin', 'none', 'viewer', 'editor']", expected "bool")
Python code quality checks: posthog/rbac/user_access_control.py#L59
Argument 1 to "index" of "list" has incompatible type "str"; expected "Literal['none', 'member', 'admin', 'none', 'viewer', 'editor']"
Python code quality checks: posthog/rbac/user_access_control.py#L80
Incompatible return value type (got "str", expected "Literal['action', 'activity_log', 'annotation', 'batch_export', 'cohort', 'dashboard', 'dashboard_template', 'early_access_feature', 'event_definition', 'experiment', 'export', 'feature_flag', 'group', 'insight', 'query', 'notebook', 'organization', 'organization_member', 'person', 'plugin', 'project', 'property_definition', 'session_recording', 'session_recording_playlist', 'sharing_configuration', 'subscription', 'survey', 'user', 'webhook'] | None")
Python code quality checks: posthog/rbac/user_access_control.py#L92
Incompatible types in assignment (expression has type "Organization | ForeignKey[Any, Any] | Any", variable has type "Organization")
Python code quality checks: posthog/rbac/user_access_control.py#L92
Item "None" of "Team | None" has no attribute "organization"
Python code quality checks: posthog/rbac/user_access_control.py#L124
"Model" has no attribute "id"
Determine need to run backend checks
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, dorny/paths-filter@v2. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Python code quality checks
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: n1hility/cancel-previous-runs@v3, actions/checkout@v3, syphar/restore-virtualenv@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Validate Django migrations
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, syphar/restore-virtualenv@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Django tests – EE (persons-on-events off), Py 3.10.10, clickhouse/clickhouse-server:23.11.2.11-alpine (1/5) (depot)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, pnpm/action-setup@v2, actions/setup-node@v3, syphar/restore-virtualenv@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Async migrations tests - clickhouse/clickhouse-server:23.11.2.11-alpine
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, syphar/restore-virtualenv@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Django tests – FOSS (persons-on-events on), Py 3.10.10, clickhouse/clickhouse-server:23.11.2.11-alpine (1/5) (depot)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, pnpm/action-setup@v2, actions/setup-node@v3, syphar/restore-virtualenv@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Django tests – EE (persons-on-events on), Py 3.10.10, clickhouse/clickhouse-server:23.11.2.11-alpine (2/5) (depot)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, pnpm/action-setup@v2, actions/setup-node@v3, syphar/restore-virtualenv@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Django tests – EE (persons-on-events on), Py 3.10.10, clickhouse/clickhouse-server:23.11.2.11-alpine (5/5) (depot)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, pnpm/action-setup@v2, actions/setup-node@v3, syphar/restore-virtualenv@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Django tests – EE (persons-on-events on), Py 3.10.10, clickhouse/clickhouse-server:23.11.2.11-alpine (1/5) (depot)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, pnpm/action-setup@v2, actions/setup-node@v3, syphar/restore-virtualenv@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Django tests – FOSS (persons-on-events on), Py 3.10.10, clickhouse/clickhouse-server:23.11.2.11-alpine (5/5) (depot)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, pnpm/action-setup@v2, actions/setup-node@v3, syphar/restore-virtualenv@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Django tests – EE (persons-on-events on), Py 3.10.10, clickhouse/clickhouse-server:23.11.2.11-alpine (3/5) (depot)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, pnpm/action-setup@v2, actions/setup-node@v3, syphar/restore-virtualenv@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Django tests – EE (persons-on-events off), Py 3.10.10, clickhouse/clickhouse-server:23.11.2.11-alpine (2/5) (depot)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, pnpm/action-setup@v2, actions/setup-node@v3, syphar/restore-virtualenv@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Django tests – EE (persons-on-events off), Py 3.10.10, clickhouse/clickhouse-server:23.11.2.11-alpine (5/5) (depot)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, pnpm/action-setup@v2, actions/setup-node@v3, syphar/restore-virtualenv@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Django tests – FOSS (persons-on-events on), Py 3.10.10, clickhouse/clickhouse-server:23.11.2.11-alpine (2/5) (depot)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, pnpm/action-setup@v2, actions/setup-node@v3, syphar/restore-virtualenv@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Django tests – EE (persons-on-events on), Py 3.10.10, clickhouse/clickhouse-server:23.11.2.11-alpine (4/5) (depot)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, pnpm/action-setup@v2, actions/setup-node@v3, syphar/restore-virtualenv@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Django tests – EE (persons-on-events off), Py 3.10.10, clickhouse/clickhouse-server:23.11.2.11-alpine (4/5) (depot)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, pnpm/action-setup@v2, actions/setup-node@v3, syphar/restore-virtualenv@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Django tests – EE (persons-on-events off), Py 3.10.10, clickhouse/clickhouse-server:23.11.2.11-alpine (3/5) (depot)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, pnpm/action-setup@v2, actions/setup-node@v3, syphar/restore-virtualenv@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Django tests – FOSS (persons-on-events on), Py 3.10.10, clickhouse/clickhouse-server:23.11.2.11-alpine (4/5) (depot)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, pnpm/action-setup@v2, actions/setup-node@v3, syphar/restore-virtualenv@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Django tests – FOSS (persons-on-events off), Py 3.10.10, clickhouse/clickhouse-server:23.11.2.11-alpine (1/5) (depot)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, pnpm/action-setup@v2, actions/setup-node@v3, syphar/restore-virtualenv@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Django tests – FOSS (persons-on-events on), Py 3.10.10, clickhouse/clickhouse-server:23.11.2.11-alpine (3/5) (depot)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, pnpm/action-setup@v2, actions/setup-node@v3, syphar/restore-virtualenv@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Django tests – FOSS (persons-on-events off), Py 3.10.10, clickhouse/clickhouse-server:23.11.2.11-alpine (2/5) (depot)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, pnpm/action-setup@v2, actions/setup-node@v3, syphar/restore-virtualenv@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Django tests – FOSS (persons-on-events off), Py 3.10.10, clickhouse/clickhouse-server:23.11.2.11-alpine (5/5) (depot)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, pnpm/action-setup@v2, actions/setup-node@v3, syphar/restore-virtualenv@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Django tests – FOSS (persons-on-events off), Py 3.10.10, clickhouse/clickhouse-server:23.11.2.11-alpine (4/5) (depot)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, pnpm/action-setup@v2, actions/setup-node@v3, syphar/restore-virtualenv@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Django tests – FOSS (persons-on-events off), Py 3.10.10, clickhouse/clickhouse-server:23.11.2.11-alpine (3/5) (depot)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, pnpm/action-setup@v2, actions/setup-node@v3, syphar/restore-virtualenv@v1, actions/upload-artifact@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Django tests – FOSS (persons-on-events off), Py 3.10.10, clickhouse/clickhouse-server:23.11.2.11-alpine (3/5) (depot)
No files were found with the provided path: posthog/tasks/test/__emails__. No artifacts will be uploaded.