Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 13
chore: Remove yarn setup, rely on npx for @appland/appmap#368
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
Uh oh!
There was an error while loading. Please reload this page.
Changes from all commits
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -2,7 +2,6 @@ | ||
| /html/ | ||
| .bundle | ||
| /.yardoc | ||
| /.yarn | ||
| /_yardoc/ | ||
| /coverage/ | ||
| /doc/ | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -6,7 +6,7 @@ The official documentation for `appmap-ruby` is at [appland.com/docs](https://ap | ||
| ## Integration with appmap-js | ||
| Most of the analytics functionality for AppMap JSON is implemented in [appmap-js](https://github.com/applandinc/appmap-js/). In particular, `packages/cli`. `appmap-ruby` includes the source code and dependencies of `@appland/appmap`. Check the [Rakefile](./Rakefile) for references to npm and/or yarn to see how the packaging works. | ||
| Most of the analytics functionality for AppMap JSON is implemented in [appmap-js](https://github.com/applandinc/appmap-js/). In particular, `packages/cli`. `appmap-ruby` invokes `@appland/appmap` via `npx` at runtime; no local installation is required. | ||
dividedmind marked this conversation as resolved.
Uh oh!There was an error while loading. Please reload this page. | ||
| `appmap-ruby` executes command-line programs provided by `@appland/appmap`; it doesn't attempt to load a Node.js library in-process. `@appland/appmap` commands are designed to produce clean output on stdout, which is obtained and processed by `appmap-ruby`. | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -10,12 +10,7 @@ Rake::ExtensionTask.new("appmap") do |ext| | ||
| ext.lib_dir = "lib/appmap" | ||
| end | ||
| desc 'Install non-Ruby dependencies' | ||
| task :install do | ||
| system 'yarn install' or raise 'yarn install failed' | ||
| end | ||
| RSpec::Core::RakeTask.new spec: %i[compile install] do |task, args| | ||
| RSpec::Core::RakeTask.new spec: [:compile] do |task, args| | ||
| task.exclude_pattern = 'spec/fixtures/**/*_spec.rb' | ||
dividedmind marked this conversation as resolved.
Uh oh!There was an error while loading. Please reload this page. | ||
| task.rspec_opts = '-f doc' | ||
| if args.count > 0 | ||
This file was deleted.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
CopilotAIApr 26, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The test suite exercises code paths that call out to
npx/node(e.g., Depends API specs update the AppMap index viaAppMap::NodeCLI). With the Node setup step removed, the job now relies on whatever Node/npm happen to be preinstalled on the runner, which can change and can break CI. Re-addactions/setup-node@v4(and considercache: npm) for thetestjob to make the environment deterministic.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Non-deterministic is actually good in this case IMO. This reflects more closely how the users will use it and will make it easier to catch any regressions.