Sriracha has a long shelf life - think a few years - but it can eventually go bad. If you find any mold in the bottle, it has a fermented smell, or the ingredients have separated or can't be poured, it's time to toss it out. Note that if you see the sriracha turning darker, that's not a sign it's gone bad - it's a natural process that happens with chiles.