feat(tree-sitter): add tree-sitter devcontainer feature#4
Merged
Conversation
- `src/tree-sitter/devcontainer-feature.json`: Add feature metadata with grammar options - `src/tree-sitter/install.sh`: Add installation script with conditional grammar compilation - `test-local.sh`: Add --base-image flag support with default ubuntu base - `test/tree-sitter/base-image.txt`: Set compatible ubuntu base image for GLIBC requirements - `test/tree-sitter/test.sh`: Add base test suite for feature validation - `test/tree-sitter/scenarios.json`: Add test scenarios configuration - `test/tree-sitter/install_tree_sitter_latest.sh`: Add CLI-only test scenario - `test/tree-sitter/install_tree_sitter_with_php.sh`: Add PHP grammar compilation test - `test/tree-sitter/install_tree_sitter_with_all_grammars.sh`: Add all-grammars test scenario
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
test-local.shwith--base-imageflag to support per-feature base image overrides during local testingChanges
Feature: tree-sitter
src/tree-sitter/devcontainer-feature.json: Feature metadata withversionandgrammarsoptions (none/php/all)src/tree-sitter/install.sh: Installation script that downloads the tree-sitter CLI binary and conditionally compiles requested grammarsTests: tree-sitter
test/tree-sitter/test.sh: Base test suite verifying CLI is installed and functionaltest/tree-sitter/scenarios.json: Scenario configuration defining three test variantstest/tree-sitter/base-image.txt: Pins tests tomcr.microsoft.com/devcontainers/base:ubuntuto ensure GLIBC compatibility with tree-sitter binariestest/tree-sitter/install_tree_sitter_latest.sh: Scenario script for CLI-only installationtest/tree-sitter/install_tree_sitter_with_php.sh: Scenario script validating PHP grammar compilationtest/tree-sitter/install_tree_sitter_with_all_grammars.sh: Scenario script validating all grammars compilationTest Infrastructure
test-local.sh: Add--base-imageflag support to allow overriding the base image at invocation time, falling back to per-featurebase-image.txtconfigurationTest plan
./test-local.sh tree-sitterand verify all three scenarios pass./test-local.sh --base-image mcr.microsoft.com/devcontainers/base:ubuntu tree-sitterand confirm CLI flag override workstree-sitter --versionsucceeds inside a container built with the feature.sofile is present whengrammars=phpoption is setGenerated with awf commit workflow