Feature(s) impacted
Ability to push Layout changes to a remote environment
Observed behavior
I made significant layout changes and minor changes to the back end code, all of which are successfully running on my local environment.
When trying to push the forest branch associated with these changes, I always receive the following error: Failed to push branch: source and destination environments must have the same schema
The backend server for the target environment had the schema file and all changes pushed to it, and was rebooted with those changes. Both my local environment and the remote environment are running the exact same code, including the schema file. All of the backend code changes appear on the remote environment successfully.
Running forest shema:apply
, forest schema:update
, and forest environments:reset --environment=Test
all resulted in no difference in this behavior. The error still appears when trying to push the branch.
Expected behavior
The layout changes on my local development environment be applied to the remote environment with a successful forest push
Failure Logs
The logs from my local system when trying to push the branch:
forest push
? Select the remote environment you want to push onto Test
? Push branch test-branch onto Test Yes
× Failed to push branch: source and destination environments must have the same schema
As a note, when the server was rebooted with the change to the code and schema file, I did see the “Sending schema file to Forest…” printout, implying that the schema is changed compared to before the reboot, and the server is therefore running the new schema.
Context
- Project name: charitywater
- Team names: Charity Water, Twitsthink, Partners (all 3 have layout changes)
- Environment name: Test (this is the remote), development (this is the local environment)
- Branch Name: test-branch
- Agent type & version: forest-express-sequelize:8.4.8
- Recent changes made on your end if any: minor model changes, numerous layout changes
Other Notes
I see other similar issues reported previously, and it looks like there may have been a bug in Forest Admin. In those threads, the user was asked for environment secrets, so I’m including those here as well.
My Development environment secret (last 5 characters): 05099
Test environment secret: db33a
Co-worker’s Development environment secret: be9d8
Note that my co-worker is also working on some model and layout changes, but his changes are only in his development environment at this time (he has not pushed the changes). But I’m including his secret here too just in case.