Atif Ali
f5a571679a
chore: fix module detection to exclude hidden dirs ( #339 )
...
## Before
```console
🚀 Coder Registry Tag Release Script
Operating on commit: 4238f38353a20c52afc28de8a3878b029a7473c2
🔍 Scanning all modules for missing release tags...
⚠️ anomaly/.coder: No version found in README, skipping
✅ anomaly/tmux: v1.0.0 (already tagged)
⚠️ coder-labs/.coder: No version found in README, skipping
✅ coder-labs/cursor-cli: v0.1.1 (already tagged)
✅ coder-labs/gemini: v1.1.0 (already tagged)
⚠️ coder-labs/jetbrains-fleet: No version found in README, skipping
⚠️ coder/.coder: No version found in README, skipping
✅ coder/agentapi: v1.1.1 (already tagged)
✅ coder/aider: v1.1.2 (already tagged)
✅ coder/amazon-dcv-windows: v1.1.1 (already tagged)
✅ coder/amazon-q: v1.1.2 (already tagged)
✅ coder/aws-region: v1.0.31 (already tagged)
✅ coder/azure-region: v1.0.31 (already tagged)
✅ coder/claude-code: v2.1.0 (already tagged)
✅ coder/code-server: v1.3.1 (already tagged)
✅ coder/coder-login: v1.0.31 (already tagged)
✅ coder/cursor: v1.3.1 (already tagged)
✅ coder/devcontainers-cli: v1.0.32 (already tagged)
✅ coder/dotfiles: v1.2.1 (already tagged)
✅ coder/filebrowser: v1.1.2 (already tagged)
✅ coder/fly-region: v1.0.31 (already tagged)
✅ coder/gcp-region: v1.0.31 (already tagged)
✅ coder/git-clone: v1.1.1 (already tagged)
✅ coder/git-commit-signing: v1.0.31 (already tagged)
✅ coder/git-config: v1.0.31 (already tagged)
✅ coder/github-upload-public-key: v1.0.31 (already tagged)
✅ coder/goose: v2.1.1 (already tagged)
✅ coder/hcp-vault-secrets: v1.0.34 (already tagged)
✅ coder/jetbrains: v1.0.3 (already tagged)
✅ coder/jetbrains-fleet: v1.0.1 (already tagged)
✅ coder/jetbrains-gateway: v1.2.2 (already tagged)
✅ coder/jfrog-oauth: v1.0.31 (already tagged)
✅ coder/jfrog-token: v1.0.31 (already tagged)
✅ coder/jupyter-notebook: v1.2.0 (already tagged)
✅ coder/jupyterlab: v1.1.1 (already tagged)
✅ coder/kasmvnc: v1.2.1 (already tagged)
✅ coder/kiro: v1.0.0 (already tagged)
✅ coder/local-windows-rdp: v1.0.2 (already tagged)
✅ coder/personalize: v1.0.31 (already tagged)
✅ coder/slackme: v1.0.31 (already tagged)
✅ coder/vault-github: v1.0.31 (already tagged)
✅ coder/vault-jwt: v1.1.1 (already tagged)
✅ coder/vault-token: v1.2.1 (already tagged)
✅ coder/vscode-desktop: v1.1.1 (already tagged)
✅ coder/vscode-desktop-core: v1.0.0 (already tagged)
✅ coder/vscode-web: v1.3.1 (already tagged)
✅ coder/windows-rdp: v1.2.3 (already tagged)
✅ coder/windsurf: v1.1.1 (already tagged)
✅ coder/zed: v1.1.0 (already tagged)
✅ nataindata/apache-airflow: v1.0.14 (already tagged)
✅ thezoker/nodejs: v1.0.11 (already tagged)
⚠️ whizus/.coder: No version found in README, skipping
✅ whizus/exoscale-instance-type: v1.0.13 (already tagged)
✅ whizus/exoscale-zone: v1.0.13 (already tagged)
📊 Summary: 0 of 54 modules need tagging
✅ 🎉 All modules are up to date! No tags needed.
```
## After
```console
🚀 Coder Registry Tag Release Script
Operating on commit: 7f9725209fc143014c98c4d750163c88e93338f4
🔍 Scanning all modules for missing release tags...
✅ anomaly/tmux: v1.0.0 (already tagged)
✅ coder-labs/cursor-cli: v0.1.1 (already tagged)
✅ coder-labs/gemini: v1.1.0 (already tagged)
✅ coder/agentapi: v1.1.1 (already tagged)
✅ coder/aider: v1.1.2 (already tagged)
✅ coder/amazon-dcv-windows: v1.1.1 (already tagged)
✅ coder/amazon-q: v1.1.2 (already tagged)
✅ coder/aws-region: v1.0.31 (already tagged)
✅ coder/azure-region: v1.0.31 (already tagged)
✅ coder/claude-code: v2.1.0 (already tagged)
✅ coder/code-server: v1.3.1 (already tagged)
✅ coder/coder-login: v1.0.31 (already tagged)
✅ coder/cursor: v1.3.1 (already tagged)
✅ coder/devcontainers-cli: v1.0.32 (already tagged)
✅ coder/dotfiles: v1.2.1 (already tagged)
✅ coder/filebrowser: v1.1.2 (already tagged)
✅ coder/fly-region: v1.0.31 (already tagged)
✅ coder/gcp-region: v1.0.31 (already tagged)
✅ coder/git-clone: v1.1.1 (already tagged)
✅ coder/git-commit-signing: v1.0.31 (already tagged)
✅ coder/git-config: v1.0.31 (already tagged)
✅ coder/github-upload-public-key: v1.0.31 (already tagged)
✅ coder/goose: v2.1.1 (already tagged)
✅ coder/hcp-vault-secrets: v1.0.34 (already tagged)
✅ coder/jetbrains: v1.0.3 (already tagged)
✅ coder/jetbrains-fleet: v1.0.1 (already tagged)
✅ coder/jetbrains-gateway: v1.2.2 (already tagged)
✅ coder/jfrog-oauth: v1.0.31 (already tagged)
✅ coder/jfrog-token: v1.0.31 (already tagged)
✅ coder/jupyter-notebook: v1.2.0 (already tagged)
✅ coder/jupyterlab: v1.1.1 (already tagged)
✅ coder/kasmvnc: v1.2.1 (already tagged)
✅ coder/kiro: v1.0.0 (already tagged)
✅ coder/local-windows-rdp: v1.0.2 (already tagged)
✅ coder/personalize: v1.0.31 (already tagged)
✅ coder/slackme: v1.0.31 (already tagged)
✅ coder/vault-github: v1.0.31 (already tagged)
✅ coder/vault-jwt: v1.1.1 (already tagged)
✅ coder/vault-token: v1.2.1 (already tagged)
✅ coder/vscode-desktop: v1.1.1 (already tagged)
✅ coder/vscode-desktop-core: v1.0.0 (already tagged)
✅ coder/vscode-web: v1.3.1 (already tagged)
✅ coder/windows-rdp: v1.2.3 (already tagged)
✅ coder/windsurf: v1.1.1 (already tagged)
✅ coder/zed: v1.1.0 (already tagged)
✅ nataindata/apache-airflow: v1.0.14 (already tagged)
✅ thezoker/nodejs: v1.0.11 (already tagged)
✅ whizus/exoscale-instance-type: v1.0.13 (already tagged)
✅ whizus/exoscale-zone: v1.0.13 (already tagged)
📊 Summary: 0 of 49 modules need tagging
✅ 🎉 All modules are up to date! No tags needed.
```
2025-08-19 17:34:54 +05:00
DevCats
858799ce20
fix: update version extraction to be more robust, ensure compatibility ( #337 )
...
## Description
Update version detection to always detect named module block, and
extract version from same module block.
Ensure that script is completely compatible for all Unix environments.
<!-- Briefly describe what this PR does and why -->
## Type of Change
- [ ] New module
- [X] Bug fix
- [ ] Feature/enhancement
- [ ] Documentation
- [ ] Other
## Testing & Validation
- [ ] Tests pass (`bun test`)
- [X] Code formatted (`bun run fmt`)
- [X] Changes tested locally
2025-08-18 14:36:29 -05:00
blink-so[bot]
bb667d2209
fix(tag_release): improve macOS and Linux compatibility ( #335 )
...
Co-authored-by: blink-so[bot] <211532188+blink-so[bot]@users.noreply.github.com>
2025-08-18 19:09:10 +05:00
DevCats
05b9bb1ae4
feat(tag_release): add advanced options and devops friendly features ( #322 )
...
## Description
- Add CLI argument parsing with short and long options
- Implement JSON output format for programmatic consumption
- Add dry-run mode for safe testing
- Include verbose and quiet logging modes
- Add namespace and module filtering capabilities
- Implement skip-push option for tag creation without remote push
- Add pre-flight checks for git repository validation
- Enhance error handling with structured logging
- Add exit codes for different operation states
- Include comprehensive help documentation with examples
```
Usage: ./scripts/tag_release.sh [OPTIONS]
OPTIONS:
-y, --auto-approve Skip confirmation prompt
-d, --dry-run Preview without creating tags
-v, --verbose Detailed output
-q, --quiet Minimal output
-f, --format=FORMAT Output format: 'plain' or 'json'
-n, --namespace=NAME Target specific namespace
-m, --module=NAME Target specific module
-s, --skip-push Create tags but don't push
-h, --help Show this help
EXAMPLES:
./scripts/tag_release.sh # Interactive mode
./scripts/tag_release.sh -y -q -f json # CI/CD automation
./scripts/tag_release.sh -d -v # Test with verbose output
./scripts/tag_release.sh -m code-server -d # Target specific module
./scripts/tag_release.sh -n coder -m code-server -d # Target module in namespace
Exit codes: 0=success, 1=error, 2=no action needed, 3=validation failed
```
## Type of Change
- [ ] New module
- [ ] Bug fix
- [X] Feature/enhancement
- [ ] Documentation
- [ ] Other
## Testing & Validation
- [X] Tests pass (`bun test`)
- [X] Code formatted (`bun run fmt`)
- [X] Changes tested locally
## Related Issues
<!-- Link related issues or write "None" if not applicable -->## Module
Information
None
2025-08-11 21:18:39 -05:00
Atif Ali
45b72c7241
Migrate tests to Terraform for jetbrains, zed, and code-server ( #307 )
...
## Summary
- Introduces Terraform native tests (`terraform test`) alongside
existing Bun tests
- Migrates tests for modules: jetbrains, zed, and code-server
- Removes Bun test files for these migrated modules only
- Adds repo-wide test runner script for Terraform tests
- Updates docs and new-module sample to reflect Terraform tests
## Transition plan
- Mixed mode: Other modules retain Bun tests; CI should run both Bun and
Terraform tests temporarily
- Follow the linked epic to migrate remaining modules
## Test plan
- Run: `./scripts/terraform_test_all.sh` (passes locally)
- Bun tests still available for non-migrated modules
## Affected paths
- registry/coder/modules/jetbrains/jetbrains.tftest.hcl
- registry/coder/modules/zed/zed.tftest.hcl
- registry/coder/modules/code-server/code-server.tftest.hcl
- scripts/terraform_test_all.sh
- examples/modules/MODULE_NAME.tftest.hcl
- CONTRIBUTING.md
Contributes to #308
2025-08-11 21:09:09 -05:00
Muhammad Atif Ali
673caf2e95
Revert "chore(examples): add MODULE_NAME.tftest.hcl to new module sample and make run.sh optional"
...
This reverts commit a5edad7f176a65a0f5d58752caeb7c7d97beb2e7.
2025-08-08 17:29:11 +05:00
Muhammad Atif Ali
f5a68b500b
Revert "chore(test): migrate to terraform test and add initial .tftest for zed"
...
This reverts commit 016d4dc523dbd1197526da4a8afb74607d684404.
2025-08-08 17:29:11 +05:00
Muhammad Atif Ali
a5edad7f17
chore(examples): add MODULE_NAME.tftest.hcl to new module sample and make run.sh optional
2025-08-08 16:36:30 +05:00
Muhammad Atif Ali
016d4dc523
chore(test): migrate to terraform test and add initial .tftest for zed
...
Replace Bun-based test runner with Terraform native testing. Adds script to discover and run tests across modules and updates docs/scripts to use terraform test.
2025-08-08 13:31:35 +05:00
DevCats
03333991a4
feat: introduce automated tag and release process in maintainer guide ( #280 )
2025-08-07 16:06:13 +05:00
Benjamin Peinhardt
05124309ee
feat: add templates and update icon paths ( #144 )
...
This PR copies the templates in coder/coder/examples/templates over to
the registry, so that template contribution can be done through the
registry.
For now, the starter templates in the coder/coder binary and the
templates available in coder/registry will simply be different
constructs, until we find a solution we like around a single source of
truth for templates that doesn't raise hairy semver concerns for
coder/coder:
https://codercom.slack.com/archives/C05T7165ET1/p1749493368773469
2025-06-12 13:06:46 -05:00
Callum Styan
8b6a80b82d
ci: add golangci-lint and fix existing lint failures ( #118 )
...
This PR adds `golangci-lint` based on the configuration from
`coder/coder`
([here](https://github.com/coder/coder/blob/main/.golangci.yaml )) then
migrated to v2 using `golangci-lint migrate` plus the addition of few
more linters.
---------
Signed-off-by: Callum Styan <callumstyan@gmail.com>
2025-05-29 10:24:35 -07:00
Garrett Delfosse
1a5e483c21
chore: migrate new_module script ( #96 )
...
Closes https://github.com/coder/internal/issues/611
This scripts creates a new sample moduledir with required files
Run it like : ./scripts/new_module.sh my-namespace/my-module
2025-05-15 11:33:04 -04:00
Michael Smith
45dc925f8b
fix: update repo structure validation logic to disallow false positives ( #10 )
...
* refactor: update file structure to reflect new changes
* refactor: start splitting up files
* refactor: more domain splitting
* refactor: remove directory validation from contributors file
* fix: update repo structure checks
* fix: improve check for user namespace subdirectories
* docs: add missing words to comment
* docs: update typo
* refactor: make code easier to read
* fix: update README files
* fix: remove employer field entirely
* fix: make Github field optional
* refactor: rename files
2025-05-02 11:23:52 -04:00
Michael Smith
9e18a4e3a8
chore: add prettier/typo check to CI ( #14 )
...
## Changes made
- Added back CI steps for validating the codebase for typos and formatting
- Updated README validation CI step to be dependent on typo-checking step
- Updated configuration files as needed to support the new CI step
- Updated all files that were previously getting skipped over from improperly-set-up CI logic
2025-04-29 10:09:22 -04:00
Michael Smith
9404ad9a53
chore: add [32m[1mSuccess![0m The configuration is valid. ( #16 )
...
More work towards closing https://github.com/coder/internal/issues/532
## Changes made
- Added Bash script to run `terraform validate` on all relevant repos
- Updated `package.json` and CI to use the script
2025-04-29 09:51:04 -04:00
Michael Smith
a2c246ea06
refactor: split out error func
2025-04-14 13:52:40 +00:00
Michael Smith
39b264a7f9
refactor: split up package boundaries
2025-04-14 13:48:19 +00:00
Michael Smith
bdf9c5f51b
refactor: update namespacing
2025-04-14 13:45:41 +00:00
Michael Smith
ffd9861e03
refactor: extract pseudo-constants
2025-04-14 13:37:17 +00:00
Michael Smith
5c45642e4b
refactor: split off another function
2025-04-11 17:26:45 +00:00
Michael Smith
96fa5d4157
refactor: apply majority of feedback
2025-04-11 16:55:09 +00:00
Michael Smith
65fb7bcffb
refactor: standardize how errors are defined
2025-04-11 13:44:15 +00:00
Michael Smith
affc5063ca
refactor: split validation function into smaller pieces
2025-04-10 21:01:58 +00:00
Michael Smith
3b9c01ea6c
fix: ensure relative avatars keep small scope
2025-04-09 16:07:58 +00:00
Michael Smith
88f7be27ec
chore: set up initial version of CI
2025-04-09 15:01:08 +00:00
Michael Smith
3b9ec5ec41
chore: finish initial version of validation script
2025-04-08 21:23:36 +00:00
Michael Smith
9e48eb806f
refactor: reorganize scripts again
2025-04-08 21:01:36 +00:00