Skip to content

Conversation

@euank
Copy link
Contributor

@euank euank commented Jun 20, 2025

Re-creation of #207, since that one was a PR from a fork, and our current CI setup only works for first-party PRs, not PRs-from-forks... which of course I think we should fix, but it seems like it's out of scope of this change.


The main issue was that we had a mix of spaces and tabs, and that makes yaml parsers unhappy.

Before:

2025/06/18 08:40:32 INFO client session established
2025/06/18 08:40:32 The TrafficPolicy you provided is invalid: could not decode from string: The traffic policy was not able to be parsed:
yaml: line 4: found a tab character that violates indentation.

After:

2025/06/18 08:43:52 INFO client session established
2025/06/18 08:43:52 Endpoint online https://<random>.ngrok.app

I also plumbed in slog since otherwise there's no output on errors, which is kinda unsettling.

The main issue was that we had a mix of spaces and tabs, and that makes
yaml parsers unhappy.

Before:
```
2025/06/18 08:40:32 INFO client session established
2025/06/18 08:40:32 The TrafficPolicy you provided is invalid: could not decode from string: The traffic policy was not able to be parsed:
yaml: line 4: found a tab character that violates indentation.
```

After:
```
2025/06/18 08:43:52 INFO client session established
2025/06/18 08:43:52 Endpoint online https://<random>.ngrok.app
```

I also plumbed in slog since otherwise there's no output on errors, which
is kinda unsettling.
@inconshreveable inconshreveable merged commit 0aa399a into main Jun 20, 2025
3 of 6 checks passed
@inconshreveable inconshreveable deleted the euan/traffic-policy-example-fixup branch June 20, 2025 12:44
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.

3 participants