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

Experiments docs and experiment cleanup #771

Merged
merged 4 commits into from Jun 6, 2018
Merged

Experiments docs and experiment cleanup #771

merged 4 commits into from Jun 6, 2018

Conversation

lox
Copy link
Contributor

@lox lox commented May 18, 2018

This adds an EXPERIMENTS.md which lists agent experiments available.

@lox
Copy link
Contributor Author

lox commented May 18, 2018

Worth noting that we don't pass experiments on to the bootstrap. Will figure that out when we have an experiment in the bootstrap I guess!

Copy link
Contributor

@toolmantim toolmantim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, sans that small docs change 👌🏼

EXPERIMENTS.md Outdated

```bash
buildkite-agent start --experiment experiment1 --experiment expertiment2
```
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we add a config file example too? Maybe even above this? Only because I think that's the most common way people configure their agent, and people might not be sure of the array/list syntax.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yup, can do!

@lox
Copy link
Contributor Author

lox commented May 18, 2018

Change made @toolmantim.

EXPERIMENTS.md Outdated
buildkite-agent start --experiment experiment1 --experiment expertiment2
```

Or uou can set them in your [agent configuration file](https://buildkite.com/docs/agent/v3/configuration) and they will apply whenever your agent runs:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"you" typo here! Probably don't need "and they will apply whenever your agent runs" I reckon.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Otherwise, looking ace! 🎉

@@ -0,0 +1,29 @@
# Experiments

We frequently introduce new experimental features to the agent. You can use the `--experiment` flag to opt-in to them and test them out:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we say something along the lines of "these may be removed at any time, so use with caution". One of the benefits of not documenting experiments is that if we decide to ditch something, and no one will really know about it since it was never documented.

I'm just worried about experiments becoming something "supported" but not really "supported" (if that makes sense). i.e. if someone finds a bug in the msgpack experiment, do we fix it? If it's blocking them from doing something, do we consider it a proper bug? I think it's important to just setup the expectation that this stuff is very experimental, it may not become stable, and you shouldn't rely on anything.

Readings docs also made me wonder what the behaviour is when you activate an experiment that doesn't exist, do we error? Or do we just warn? Might be good to check since if peeps start adding it to their configs, then we remove it as an experiment because it lands in stable, we wouldn't want to fail their agents...

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yup, good thinking. I think we basically say those features are likely to break or change in the future. We'll respond to bug reports on them, but we make zero guarantees around whether they will exist in the next point release.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Readings docs also made me wonder what the behaviour is when you activate an experiment that doesn't exist, do we error?

I dunno, I'm fine with the current behaviour. If it's there, it turns on, if not, it doesn't.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I dunno, I'm fine with the current behaviour. If it's there, it turns on, if not, it doesn't.

Cool cool, just wanted to make sure it didn't blow up with a "experiment-123 does not exist" type thing..

@lox
Copy link
Contributor Author

lox commented May 24, 2018

@keithpitt I made the changes you requested, let me know what you think.

@lox lox merged commit a9645cd into master Jun 6, 2018
@lox lox deleted the experiments-docs branch June 6, 2018 11:02
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.

None yet

3 participants