Skip to content

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

@lpm0073

Description

@lpm0073

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

Metadata

Metadata

Labels

bugSomething isn't workinghelp wantedExtra attention is needed

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions