Deploy environment - wrong branch

Project id b2f0a0fd-8a18-47c3-8cf3-ce912b1ef77b I have this project with 3 environments, each one connected to its branch. Today I merged a pull request (#90) on my "staging" branch, but something wrong happened. As we can see on the print screen, the "main" environment deployed the branch from the pull request (#90) that was merged only into "staging". I only noticed it after a couple of hours when the users notified me that they were having difficulty in some process. What can I do to avoid it? This never happened before. I noticed some instability on railway during the deployment on staging, but I didn't imagined that this could affect the main environment.
No description
No description
17 Replies
Percy
Percy3mo ago
Project ID: b2f0a0fd-8a18-47c3-8cf3-ce912b1ef77b
Brody
Brody3mo ago
forgive me for asking but are you sure you didn't merge into main by accident?
Felipe Cardoso
Felipe Cardoso3mo ago
Yes I am. I just restarted the application and it came back to PR 88. I think it is clear on the screenshots that shows the "history deploys"... There you can see that there was a build after pr 90 merged on "staging", 2 hours later I restarted and it runned on pr 88 It should only show builds after pr merged on branch main, not staging The pr #89 was merged on develop, and runned correctly, only on develop environment.
Felipe Cardoso
Felipe Cardoso3mo ago
The last merge into main was 2 days ago.
No description
No description
No description
No description
Brody
Brody3mo ago
okay thank you the extra context is it possible you temporarily switched the deployment branch to staging? check your project activity logs
Felipe Cardoso
Felipe Cardoso3mo ago
I sent the print in the first message (2nd image) showing the branch the environment is connected to. I never changed it. But as I said, while the deploy was happening, the dashboard was going through something, it was very slow on loading. I thought it was my internet, I changed my DNS , cleaned my cash to ensure that wasn't anything here I couldn't find any activity logs that show anything about changing environment / branch links
Felipe Cardoso
Felipe Cardoso3mo ago
No description
No description
No description
Felipe Cardoso
Felipe Cardoso3mo ago
On activity logs, we can see the deployment 2 days ago The 7 hours ago (wrong deploy) After that I restarted, and while I didn't get what was happening, I tried to change an environment variable , I thought it was something related to it, but after that I saw the pr stuff and rollback the environment variable Nothing about changing the branch like
Brody
Brody3mo ago
alright thanks for all the info, this does seem like a glitch from railway, i will escalate and hopefully they can shed some light on why this happened and why this would be unlikely to happen again
Duchess
Duchess3mo ago
New reply sent from Help Station thread:
This thread has been escalated to the Railway team.
You're seeing this because this thread has been automatically linked to the Help Station thread.
Brody
Brody3mo ago
^ please log in
Felipe Cardoso
Felipe Cardoso3mo ago
I appreciate your attention. Have a great week
Brody
Brody3mo ago
you too!
Duchess
Duchess3mo ago
New reply sent from Help Station thread:
Hey there, very sorry for the experience. I have raised a ticket internally to track down how this may have happened.
You're seeing this because this thread has been automatically linked to the Help Station thread.
Felipe Cardoso
Felipe Cardoso3mo ago
hi It just happened again But this time, i even had made anything on mais branchs.. It just changed to staging branch, from nothing
No description
Want results from more Discord servers?
Add your server