Skip to content

Commit

Permalink
Fix heisenbug of windows pipelines not working (#554)
Browse files Browse the repository at this point in the history
* add case for DISTR=win

* Add a find

* retrigger ci

* Add debug output

* remove debug

* try with less debug

* Add sleep 0.2

* Add debug with lots of ls

* Replace ls with longer sleep (1.2s)

* Make heisenbugworkaround windows-conditional

* Fix missing backslash

* Should work now

* More delay and more silent output

* remove debug code
  • Loading branch information
marcvs committed Jan 5, 2024
1 parent a349f50 commit fb5f226
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -438,6 +438,13 @@ $(OBJDIR)/%.o : $(SRCDIR)/%.c
set -e ;\
depFileName=$(OBJDIR)/$*.d ;\
$(CC) -MM $(CFLAGS) $< -o $${depFileName} $(DEFINE_USE_CJSON_SO) $(DEFINE_USE_LIST_SO) $(DEFINE_USE_MUSTACHE_SO) ;\
TEST="${MINGW}${MSYS}";\
[ -z ${TEST} ] || {\
ls -la obj/oidc-agent > /dev/null ;\
ls -la `dirname $${depFileName}` > /dev/null;\
echo "mv -f $${depFileName} $${depFileName}.tmp" ;\
sleep 2.5;\
};\
mv -f $${depFileName} $${depFileName}.tmp ;\
sed -e 's|.*:|$@:|' < $${depFileName}.tmp > $${depFileName} ;\
cp -f $${depFileName} $${depFileName}.tmp ;\
Expand Down

0 comments on commit fb5f226

Please sign in to comment.