It's easy to tie yourself in knots about entropy and the Second Law. I do it all the time...
If you take an ideal gas cylinder, and expand
or compress it "reversibly and adiabatically", then
the change in the gas's entropy is exactly zero.
Why? Well, entropy is a function of state - if you know two other of the ideal gas's properties, e.g. its temperature T and volume V, you can calculate its entropy directly:
S = S_0 + C_V \ln T + R \ln V
This is a standard result from classical thermodynamics, and comes out of a form of the First Law. At high-ish temperatures, we can assume that the heat capacity at constant volume, C_V, is a constant. So, if we move from an initial state (T_i, V_i) to a final state (T_f, V_f), then the entropy of the gas will change by an amount \Delta S:
\Delta S = C_V \ln \left( \frac{T_f}{T_i} \right) + R \ln \left( \frac{V_f}{V_i} \right)
For a reversible adiabatic compression/expansion, there is a link between the initial and final temperatures and volumes (you can derive it from the First Law):
\frac{T_f}{T_i} = \left( \frac{V_f}{V_i} \right)^{1 - \gamma}
where \gamma = C_p / C_V is the ratio of heat capacities. Hence, the
change in entropy as a result of the adiabatic compression is:
\Delta S = C_V \ln \left( \frac{T_f}{T_i} \right) + R \ln \left( \frac{V_f}{V_i} \right)
\quad = C_V \ln \left( \frac{V_f}{V_i} \right)^{1-\gamma} + R \ln \left( \frac{V_f}{V_i} \right)
\quad = C_V (1 - C_p/C_v) \ln \left( \frac{V_f}{V_i} \right) + R \ln \left( \frac{V_f}{V_i} \right)
\quad = (C_V - C_p + R) \ln \left( \frac{V_f}{V_i} \right)
and, as the heat capacities of an ideal gas are related by:
C_p = C_V + R
we see imediately that \Delta S = 0 regardless of whether the change was a compression or an expansion.