Skip to main content

Idea: Auto-Delete Failed Topic Environment


durette
Superhero (Customer)
Forum|alt.badge.img+19
  • Superhero (Customer)
  • 525 replies

You're a developer. It's 4:58pm, and you're on your way out of the office for the day, but right before you leave, you request a topic environment.

You get in at 8:00am the next day, and you find that it failed. You read the logs and say to yourself, "Oops, that was silly." You make your quick fix, and you're ready to try again, but now you can't.

The bad topic environment has to be deleted before it can be rebuilt.

You trigger the deletion, but that takes a long time. (An hour? I haven't timed it.) Now, while you're waiting for the broken topic environment to delete itself, you're either twiddling your thumbs, or you add this to your mental load, go off and do something else, and risk forgetting to come back to it.

In the best case, this turned an 8:05am redeployment into a ~9:00am redeployment. I hope your customer didn’t need this right away.

If a topic environment fails, I would like a setting I can select to delete it automatically if there's a failure so that environment slot can be available for a new build when the fix is ready.

11 replies

durette
Superhero (Customer)
Forum|alt.badge.img+19
  • Author
  • Superhero (Customer)
  • 525 replies
  • June 21, 2024

I also wouldn’t mind an email notification when it’s ready, regardless whether it succeeded or failed.


durette
Superhero (Customer)
Forum|alt.badge.img+19
  • Author
  • Superhero (Customer)
  • 525 replies
  • June 24, 2024

<comment deleted>


Forum|alt.badge.img+21
  • Superhero (Employee)
  • 427 replies
  • June 27, 2024

Hi @durette ,

I believe and enhancement to the life cycle experience is on it’s way with 24R2 to enable notifications for all jobs which i think is something we needed for a while. 

No idea on the other. Good idea nevertheless

Cheers. 


durette
Superhero (Customer)
Forum|alt.badge.img+19
  • Author
  • Superhero (Customer)
  • 525 replies
  • July 3, 2024

Here’s another idea along these lines. Sometimes you do need the environment to stay running because the error isn’t obvious, and you need to dive into the database to figure out what’s going on. Let’s say you’ve made your fix, but now you need to first delete the environment and recreate it from the same branch. I could work more efficiently if there was one single command that issued both jobs in sequence.

 

This would actually be more useful than my first idea because you don’t know in advance what kind of troubleshooting will be required.


Forum|alt.badge.img+14

I get what you’re saying and agree. 

In the meantime, I’ve worked around the long waits by creating another copy of my branch with a slightly different name.  Only works if there happens to be another free topic environment.

Yep, clunky.  But if you’re in a pants-on-fire situation, it could work.


InfFilipV
Hero (Partner)
Forum|alt.badge.img+12
  • Hero (Partner)
  • 196 replies
  • July 4, 2024

InfFilipV
Hero (Partner)
Forum|alt.badge.img+12
  • Hero (Partner)
  • 196 replies
  • July 4, 2024

and BTW, I’m usually push corrected branch with another name, so TOP environment could be ordered immediately.


durette
Superhero (Customer)
Forum|alt.badge.img+19
  • Author
  • Superhero (Customer)
  • 525 replies
  • July 8, 2024

If you create another branch, you lose your commit history, and that circumvents one major reason why we’re using source control in the first place. I can’t accept that workaround.

 

Imagine if an electrician rewired your house but didn’t label the circuit breakers. Your lights will probably work, but I don’t like this idea of not leaving breadcrumbs for future troubleshooting.

 

As a full-time employee at a customer site, I have to support the messes I create. I’m incentivized to care about such nonfunctional requirements.


InfFilipV
Hero (Partner)
Forum|alt.badge.img+12
  • Hero (Partner)
  • 196 replies
  • July 8, 2024

I am not creating new branch. I only push same branch under original and new unique name. Then order topic environment for new name, which is allowed because only name is checked and after success delete it and continue under original name, nothing is lost.


durette
Superhero (Customer)
Forum|alt.badge.img+19
  • Author
  • Superhero (Customer)
  • 525 replies
  • July 8, 2024
InfFilipV wrote:

I am not creating new branch. I only push same branch under original and new unique name. Then order topic environment for new name, which is allowed because only name is checked and after success delete it and continue under original name, nothing is lost.

Is this what you mean?

git checkout 'topic/me/M-ABC123-Do_Something'
git push origin 'topic/me/M-ABC123-Do_Something'
git push origin 'topic/me/M-ABC123-Do_Something_Clone'

 


Marcel.Ausan
Ultimate Hero (Partner)
Forum|alt.badge.img+22
  • Ultimate Hero (Partner)
  • 1142 replies
  • July 9, 2024

@durette did you create an idea for this? I’d like to give an Upvote, but I can’t do that here since it’s a normal post and not an Idea.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings