Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions .agents/environment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# See spec at https://docs.devin.ai/onboard-devin/repo-setup
# This repo contains companion code for the "Testing Angular Applications" book.
# It is organized by chapter, each with its own package.json and dependencies.
# The main runnable Angular app is in the "website" directory.
# Requires Node.js 8 (Angular 5.x era project).
initialize: |
# Install Node 8 via nvm (required for this Angular 5.x project)
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh"
nvm install 8
maintenance: |
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh"
nvm use 8
# Install dependencies for the main website app
(cd website && npm install)
# Install dependencies for chapter projects used in CI
(cd chapter08 && npm install)
(cd chapter09 && npm install)
(cd chapter11 && npm install)
Comment on lines +17 to +20

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

🟡 Maintenance step missing chapter10 dependency installation that CI requires

The maintenance section installs dependencies for chapter08, chapter09, and chapter11, but omits chapter10 subdirectories. The CI config at .circleci/config.yml installs and runs tests for chapter10/test_capabilities, chapter10/test_multicapabilities, and chapter10/test_plugins. The notes section at line 41 even acknowledges this: "CI runs on chapter08, chapter09, chapter10/*, and chapter11", yet the maintenance step doesn't install any chapter10 dependencies, so any Devin task involving chapter10 e2e tests will fail.

Suggested change
# Install dependencies for chapter projects used in CI
(cd chapter08 && npm install)
(cd chapter09 && npm install)
(cd chapter11 && npm install)
(cd chapter08 && npm install)
(cd chapter09 && npm install)
(cd chapter10/test_capabilities && npm install)
(cd chapter10/test_multicapabilities && npm install)
(cd chapter10/test_plugins && npm install)
(cd chapter11 && npm install)
Open in Devin Review

Was this helpful? React with 👍 or 👎 to provide feedback.

knowledge:
- name: lint
contents: |
# Lint the website app
(cd website && npx ng lint)
- name: test
contents: |
# Unit tests for the website app (requires Chrome/Chromium)
(cd website && npx ng test --watch=false)
- name: startup
contents: |
# Start the website dev server (Contacts app) on port 4200
export NVM_DIR="$HOME/.nvm" && [ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" && nvm use 8
(cd website && npx ng serve --port 4200)
- name: notes
contents: |
# Repo structure: each chapter (chapter01-chapter11) is a separate sub-project.
# The "website" directory is the main Angular Contacts app (Angular 5.x).
# Chapters 06/07 have pre-existing build errors (Angular Material API changes).
# Chapters 08/09/10/11 contain Protractor e2e tests.
# CI runs on chapter08, chapter09, chapter10/*, and chapter11 (see .circleci/config.yml).
# Must use Node 8 via nvm for all operations.