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

Develop #1

Merged
merged 13 commits into from
Nov 28, 2023
Merged

Develop #1

merged 13 commits into from
Nov 28, 2023

Conversation

ek-nag
Copy link
Owner

@ek-nag ek-nag commented Nov 28, 2023

No description provided.

max-nag and others added 13 commits November 17, 2023 11:19
Updated testing procedure to mock out subprocess calls which may not always be available and are slow
* Stop using `TestMain`, see `lib/google-golang/src/testing/testing.go` :

```go
// TestMain is a low-level primitive and should not be necessary for casual
// testing needs, where ordinary test functions suffice.
```

* Use `c.Fatal` instead of `log.Fatal`, see GoogleCloudPlatform#1985 for motivation;
…ique-bucket-name

Front End Deployment Unique Bucket Name
…e-api-testing

Initial testing scripts with new folder for unittests
…-version-fix

Front End go Version Updated
* Add `addlicense` pre-commit hook;
* Remove explicit invokation of it.
* Add rudimentary codespell config

* Add pre-commit definition for codespell

* ot -> it typo fix

* Some more skips for codespell

* [DATALAD RUNCMD] Do interactive fixing of some ambigous typos

=== Do not change lines below ===
{
 "chain": [],
 "cmd": "codespell -w -i 3 -C 2 ./community/front-end/ofe/script/service_account.sh ./community/front-end/ofe/website/ghpcfe/models.py ./community/front-end/ofe/website/ghpcfe/models.py ./community/modules/scripts/htcondor-install/files/autoscaler.py ./community/modules/scripts/ramble-setup/README.md ./docs/videos/healthcare-and-life-sciences/README.md ./examples/README.md ./tools/validate_configs/test_configs/README.md",
 "exit": 0,
 "extra_inputs": [],
 "inputs": [],
 "outputs": [],
 "pwd": "."
}
^^^ Do not change lines above ^^^

* 1 more typo fixed manually

* Skip (S)hortcuts, more words and files

* [DATALAD RUNCMD] run codespell throughout fixing typo automagically

=== Do not change lines below ===
{
 "chain": [],
 "cmd": "codespell -w",
 "exit": 0,
 "extra_inputs": [],
 "inputs": [],
 "outputs": [],
 "pwd": "."
}
^^^ Do not change lines above ^^^

* Duplicate ignore of requirements.txt and js in pre-commit config

until codespell-project/codespell#3196 is addressed
@ek-nag ek-nag merged commit 3768807 into spack-update Nov 28, 2023
1 check failed
ek-nag pushed a commit that referenced this pull request Dec 8, 2023
)

* Augment expression parsing error with position;
* Remove `YAML parsing error: ` prefix.

```yaml
vars:
  project_id: $(6 + 4) # Case #1
  hello: ((world+))    # Case #2
```

```sh
YAML parsing error: only traversal expressions are supported, got "6 + 4"
YAML parsing error: :0,6-6: Missing expression; Expected the start of an expression, but found the end of the file.

Case #1
Error: only traversal expressions are supported, got "6 + 4"
2:   project_id: $(6 + 4)
Case #2
Error: :0,6-6: Missing expression; Expected the start of an expression, but found the end of the file.
2:   hello: ((world+))
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants