Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: move is_docker_rootless from tutor to tutor discovery #93

Merged

Conversation

Faraz32123
Copy link
Collaborator

  • move is_docker_rootless method from tutor to tutor-discovery
  • move is_docker_rootless related tests from tutor to tutor-discovery and modify makefile according to it.

@@ -95,7 +96,7 @@


# Automount /openedx/discovery folder from the container
@tutor_hooks.Filters.COMPOSE_MOUNTS.add()
@tutor_hooks.Filters.COMPOSE_MOUNTS.add() # type: ignore
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nope, let's not type-ignore this (same below).

Copy link
Collaborator Author

@Faraz32123 Faraz32123 Nov 22, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

actually this was needed to run pylint checks which were failing before, is there any other proposition. Or we can just remove it?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Your "ignore" statement is not for pylint but for mypy. Mypy checks are failing probably because tutor is installed in editable mode: overhangio/tutor#956
These tests should not fail in CI.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ohk my bad, had to say mypy :)
If that's the case, I will remove it now.

@@ -0,0 +1,26 @@
import subprocess
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice job moving the unit tests here!

- move is_docker_rootless method from tutor to tutor-discovery
- move is_docker_rootless related tests from tutor to tutor-discovery and modify makefile according to it.
@Faraz32123 Faraz32123 force-pushed the perf/move_is_docker_rootless_from_tutor_to_tutor_discovery branch from ac52a96 to bdb15ed Compare November 22, 2024 07:45
Copy link
Contributor

@regisb regisb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

niiiice!

@regisb regisb merged commit b13626a into sumac Nov 22, 2024
@regisb regisb deleted the perf/move_is_docker_rootless_from_tutor_to_tutor_discovery branch November 22, 2024 07:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

2 participants