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

["BUG"] Error: Missing configuration value: 'is_buildkit_enabled' is undefined #46

Closed
lpm0073 opened this issue Jan 2, 2024 · 2 comments · Fixed by #47
Closed

["BUG"] Error: Missing configuration value: 'is_buildkit_enabled' is undefined #46

lpm0073 opened this issue Jan 2, 2024 · 2 comments · Fixed by #47
Assignees
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@lpm0073
Copy link
Contributor

lpm0073 commented Jan 2, 2024

Describe the bug
I encountered the following run-time tutor configuration error.

Configuration saved to /home/runner/.local/share/tutor/config.yml
Error rendering template codejail/build/codejail/Dockerfile
Error: Missing configuration value: 'is_buildkit_enabled' is undefined

Reviewing the tutor 17 release notes -- https://github.com/overhangio/tutor/releases -- i noticed this:

💥[Deprecation] The template variable is_buildkit_enabled, which now always returns True, is deprecated. Plugin authors should assume BuildKit is enabled and remove the variable from their templates (by @kdmccormick).

so, apparently there was no grace period for the removal of the tutor template variable is_buildkit_enabled

To Reproduce
Steps to reproduce the behavior:

          tutor config save --set CODEJAIL_DOCKER_IMAGE=${CODEJAIL_DOCKER_IMAGE} \
                            --set CODEJAIL_ENFORCE_APPARMOR=false \
                            --set CODEJAIL_ENABLE_K8S_DAEMONSET=true \
                            --set CODEJAIL_EXTRA_PIP_REQUIREMENTS='["git+https://github.com/StepwiseMath/stepwise-edx-plugin","git+https://${{ env.GITHUB_USER }}:${{ secrets.PAT }}@github.com/QueriumCorp/swxblock","git+https://${{ env.GITHUB_USER }}:${{ secrets.PAT }}@github.com/QueriumCorp/swpwrxblock","git+https://${{ env.GITHUB_USER }}:${{ secrets.PAT }}@github.com/QueriumCorp/geogebra_xblock"]' \

I've thus far isolated the problem to the CODEJAIL_EXTRA_PIP_REQUIREMENTS and furthermore will note that three of the four repositories in the list are private repos. i'm still researching whether this bears on the problem.

I experimented with provided a list of PyPi packages to the CODEJAIL_EXTRA_PIP_REQUIREMENTS and got the same error:

          tutor config save --set CODEJAIL_DOCKER_IMAGE=${CODEJAIL_DOCKER_IMAGE} \
                            --set CODEJAIL_ENFORCE_APPARMOR=false \
                            --set CODEJAIL_ENABLE_K8S_DAEMONSET=true \
                            --set CODEJAIL_EXTRA_PIP_REQUIREMENTS='["python-dotenv","pydantic","langchain","openai"]' \

Expected behavior
tutor configuration should saved.

Screenshots
If applicable, add screenshots to help explain your problem.

Additional context
Environment variables:

    AWS_REGION: us-east-2
    ORGANIZATION: stepwisemath
    NAMESPACE: swm-openedx-us-prod
    EKS_CLUSTER_NAME: apps-hosting-service
    AWS_ECR_REPOSITORY: stepwisemath/codejail
    AWS_DEFAULT_REGION: us-east-2
    TUTOR_VERSION: 17.0.0
    TUTOR_RUN_CADDY: false
    TUTOR_RUN_NGINX: false
    TUTOR_ID: tutor-swm-openedx-us-prod
    TUTOR_K8S_NAMESPACE: swm-openedx-us-prod
    AWS_ECR_REGISTRY_CODEJAIL: 090511222473.dkr.ecr.us-east-2.amazonaws.com
    AWS_ECR_REPOSITORY_CODEJAIL: stepwisemath/codejail
    REPOSITORY_TAG_CODEJAIL: 17.0.0-202401021551
    CODEJAIL_DOCKER_IMAGE: 090511222473.dkr.ecr.us-east-2.amazonaws.com/stepwisemath/codejail:17.0.0-202401021551
@lpm0073 lpm0073 added bug Something isn't working help wanted Extra attention is needed labels Jan 2, 2024
@lpm0073
Copy link
Contributor Author

lpm0073 commented Jan 2, 2024

Please see #47

@MaferMazu
Copy link
Contributor

Thanks for open a PR to fix this. We will review it soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
3 participants