So I was looking at the case where we have an object of mass $m$ attached to a spring with spring constant $k$. The spring is attached to the ceiling. I was working to come up with an equation of motion for releasing the mass at the point where the spring is relaxed in the case where no load is attached.
Defining the initial point as $y=0$ and taking upwards as the positive direction I was able to obtain,
$$my''=-ky-mg \implies y''+\omega^2y=-g$$
Here $\omega^2=\frac{k}{m}$. This lead to a solution
$$y(t)=\frac{g}{\omega^2}[cos(\omega t)-1]$$
Assuming this to be true, the object would oscillate with the same amplitude for an indefinite period of time. Intuitively, I would think that the gravity would act as a damping force that causes the oscillations to die out but this does not appear to be the case. Does it make sense that the object in this case will oscillate forever?