Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions .github/ISSUE_TEMPLATE/compiler-change.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@ name: Compiler change
description: Propose one observable language, validation, or toolchain change.
title: "compiler: "
body:
- type: textarea
id: outcome
attributes:
label: Outcome
description: State the single user-visible compiler or toolchain result this issue must deliver.
placeholder: "A project author can compile a server module and receive a deterministic Luau file at its Roblox placement."
validations:
required: true
- type: dropdown
id: compiler_stage
attributes:
Expand Down Expand Up @@ -40,6 +48,38 @@ body:
placeholder: "The checker rejects assigning a string to total and points at the assigned expression."
validations:
required: true
- type: textarea
id: non_goals
attributes:
label: Non-goals
description: Name related behavior that this issue explicitly does not add, preserve, or redesign. Write None when there are no exclusions.
placeholder: "Do not add compatibility aliases or procedural macros."
validations:
required: true
- type: textarea
id: acceptance_evidence
attributes:
label: Acceptance evidence
description: List the observable cases that prove the outcome and the invalid state that must become impossible.
placeholder: "- Accepted source compiles through the public API.\n- Generated Luau parses and analyzes.\n- Invalid input identifies the declared source range."
validations:
required: true
- type: textarea
id: platform_constraints
attributes:
label: Platform constraints
description: State operating-system, Roblox execution-side, or filesystem constraints that affect the contract. Write None when the behavior is platform-neutral.
placeholder: "Compilation is platform-neutral; generated placement must distinguish server, client, and shared modules."
validations:
required: true
- type: textarea
id: native_dependency_routing
attributes:
label: Native dependency routing
description: Identify required native tools, pinned revisions, and the CI or local route that supplies them. Write None when no native dependency is required.
placeholder: "Official Luau tools come from the pinned revision in compiler-contracts.yml; do not require a globally installed binary."
validations:
required: true
- type: textarea
id: proof
attributes:
Expand Down
40 changes: 40 additions & 0 deletions .github/ISSUE_TEMPLATE/compiler-regression.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,46 @@ body:
description: Include generated Luau, runtime output, or diagnostic text.
validations:
required: true
- type: textarea
id: outcome
attributes:
label: Contract outcome
description: State the one observable behavior the regression report expects the compiler to restore.
placeholder: "The public compiler rejects the invalid source and highlights the assigned expression."
validations:
required: true
- type: textarea
id: non_goals
attributes:
label: Non-goals
description: Name related behavior that the regression fix must not change. Write None when there are no exclusions.
placeholder: "Do not change valid source syntax or unrelated diagnostic reasons."
validations:
required: true
- type: textarea
id: acceptance_evidence
attributes:
label: Acceptance evidence
description: List the passing and rejecting cases that prove the regression is fixed at the public boundary.
placeholder: "- The smallest reproducer passes its public compiler fixture.\n- The original valid case remains accepted."
validations:
required: true
- type: textarea
id: platform_constraints
attributes:
label: Platform constraints
description: State operating-system, Roblox execution-side, or filesystem constraints relevant to reproducing the regression. Write None when platform-neutral.
placeholder: "None."
validations:
required: true
- type: textarea
id: native_dependency_routing
attributes:
label: Native dependency routing
description: Identify required native tools, pinned revisions, and the CI or local route that supplies them. Write None when no native dependency is required.
placeholder: "Official Luau tools are supplied by the pinned CI checkout described in compiler-contracts.yml."
validations:
required: true
- type: dropdown
id: validation_boundary
attributes:
Expand Down
8 changes: 2 additions & 6 deletions .github/workflows/compiler-contracts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,6 @@ concurrency:

jobs:
validate:
# Set the CI_ENABLED repository variable to 'false' to pause hosted runs
# while the Actions minute budget is exhausted. Absent means enabled, so a
# fresh clone gets the gate rather than silence.
if: vars.CI_ENABLED != 'false'
name: Rust and Luau integration contracts
runs-on: ubuntu-24.04
timeout-minutes: 20
Expand All @@ -38,9 +34,9 @@ jobs:
git -C .ci/luau rev-parse HEAD
test "$(git -C .ci/luau rev-parse HEAD)" = "$LUAU_REVISION"
make -C .ci/luau config=release luau luau-analyze luau-compile
- name: Run compiler integration contracts
- name: Run Full Moon and official Luau compiler contracts
env:
LUAU_BIN: ${{ github.workspace }}/.ci/luau/build/release/luau
LUAU_ANALYZE_BIN: ${{ github.workspace }}/.ci/luau/build/release/luau-analyze
LUAU_COMPILE_BIN: ${{ github.workspace }}/.ci/luau/build/release/luau-compile
run: cargo +stable test --all-targets --locked
run: cargo +stable test --all-targets --all-features --locked
17 changes: 13 additions & 4 deletions .github/workflows/pr-body-contract.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@ permissions:

jobs:
validate:
# Shares the CI_ENABLED switch with the compiler contracts so "CI is off"
# means every hosted job, not a subset. Absent means enabled.
if: vars.CI_ENABLED != 'false'
name: Require linked work, behavior, and proof
runs-on: ubuntu-latest
timeout-minutes: 2
Expand Down Expand Up @@ -71,6 +68,16 @@ jobs:
errors.push('`## Proof` must contain at least one bullet with a backticked command or verification artifact.');
}

const requiredProofCommands = [
/\bcargo(?: \+stable)? fmt --check\b/,
/\bcargo(?: \+stable)? clippy --all-targets --all-features --locked -- -D warnings\b/,
/\bcargo(?: \+stable)? test --all-targets --all-features --locked\b/,
];
const missingProofCommands = requiredProofCommands.filter((command) => !command.test(proofContent));
if (missingProofCommands.length > 0) {
errors.push('`## Proof` must list `cargo +stable fmt --check`, strict locked Clippy, and the full locked test suite.');
}

if (errors.length > 0) {
core.setFailed([
'Pull requests must use this body schema:',
Expand All @@ -82,7 +89,9 @@ jobs:
'Describe the user-visible result.',
'',
'## Proof',
'- `cargo test --all-targets --locked`',
'- `cargo +stable fmt --check`',
'- `cargo +stable clippy --all-targets --all-features --locked -- -D warnings`',
'- `cargo +stable test --all-targets --all-features --locked`',
'',
...errors.map((error) => `- ${error}`),
].join('\n'));
Expand Down
Loading
Loading