-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
[Heartbeat] Better handling of subfolders in package.json #30119
Comments
Pinging @elastic/uptime (Team:Uptime) |
Some thoughts here,
|
Hmmm, the user who reported this was using local folders. So maybe it's just those that need additional error handling?
If your folder structure is:
and you have a In this case, what I'm saying is there'd be a separate |
If the user passed in In this case, the runner would throw error as it cannot find root package.json file - https://github.com/elastic/synthetics/blob/251f504aa859ab0c4a119b5a59f7bbc84c586510/src/helpers.ts#L151 I am not sure about if its worth adding folder level filtering, We do already support names and tags filtering. |
We agreed that we'll not add the new |
Replaced by the PUSH option |
It is currently the case that heartbeat browser options only copy the exact folder specified to the tmp directory used for actually running it. This can be confusing to users who specify a path in a subfolder below their
package.json
, and can result in failed includes etc.This issue proposes:
package.json
filefilter_journeys.folder
option to let users actually filter by folder.In the case of using the new
filter_journeys.folder
option heartbeat will runnpm @elastic/synthetics $filter_journeys.folder
to do the filtering.The text was updated successfully, but these errors were encountered: