Evolution of the surface streamer and the discharge mode transition from the corona discharge to the surface flashover were investigated by pulse sequence resolved electrical and optical measurements under long-term repetitive nanosecond pulses (RNP). The test sample was a cylindrical epoxy resin insulator attached with a needle electrode in 0.1-0.4 MPa nitrogen. Under positive RNP, the inception phase of subsequent streamer discharges decreases with increasing the pulse repetition frequency (PRF), and a periodical streamer stagnation phenomenon appears at high gas pressure. Under negative RNP, the surface streamer does not illustrate symbolic decreasing tendencies in light intensity and corona inception phase in gas gap. The dependence of the evolution of surface streamer velocity on PRF is correlated with the repulsive force from surface charges and the accessibility of seed electrons. Statistical characteristics of back discharges under negative RNP are qualitatively explained by the local electric field around the triple junction. The reversal phenomenon of polarity effect of the allowable repetitive working coefficient is probably resulted from the corona stabilization effect, the surface electron detrapping process, and the assistance of background electric field. Principal results qualitatively support that behaviors of surface streamer and flashover are dominated by the electric field distribution, volume and surface memory effects as well as their interactions and bidirectional transformations, which are different from the monotonically facilitative tendency predicted by the metastable-species-dominated memory effect mechanism.