25 Commits

Author SHA1 Message Date
eddad9b770 test
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
2026-04-24 02:14:46 +03:00
b16aa7cc7e test
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
2026-04-24 01:46:13 +03:00
dvirlabs
1cbe3d4de7 fix: Use checksum-based content comparison to avoid permission-based drift false positives
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
CRITICAL FIX:

Problem: drift-check.yml was using 'copy' module in check_mode, which compares:
  - File content ✓
  - Permissions (owner, group, mode) ✗
  - Ownership ✗

After deploy, files have root:root 0644 permissions. Even though content matches,
the copy module marked files as 'changed' because permissions were being compared.
This caused false OUT_OF_SYNC reports even when configuration was actually synced.

Solution: Use MD5 checksum-based comparison instead:
  - Compare only file CONTENT using stat checksums
  - Ignore permissions/ownership differences
  - This is what matters for config management

Also fixed URLs:
  - Changed back from port 80 to port 5000 (API only)
  - Updated service name to gitops-status-api

Now drift detection only triggers on actual config changes, not permission differences.
After successful deploy, should correctly report SYNCED status.
2026-04-23 13:21:20 +03:00
dvirlabs
380eaf175a fix: Resolve OUT_OF_SYNC false positive after successful deploy
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
CRITICAL FIXES:

1. Fix API URL port: 5000 → 80 (.woodpecker.yml)
   - update-gitops-status step was POSTing to wrong port
   - gitops-status-server Service exposes port 80, not 5000
   - This caused silent POST failures that weren't detected

2. Initialize missing_on_server variable (drift-check.yml)
   - Variable was only set inside block scope
   - Could remain undefined if block failed or didn't execute
   - Now initialized to empty list before block runs
   - Prevents undefined variable errors in container environment

3. Fix drift detection logic (drift-check.yml)
   - Changed from: drift_detected uses extra_files_on_server flag
   - Changed to: drift_detected directly checks missing_on_server length
   - Adds safety with | default([]) filter
   - Prevents false positives when extra_files_on_server wasn't set properly

ROOT CAUSE:
The combination of port 5000, uninitialized variables, and flag-based logic
caused the playbook to report OUT_OF_SYNC without listing changed files
(drift_count=0, files=[]). After deployment, server config matches Git,
so drift_detected should be false and playbook should exit 0 with SYNCED status.

Now correctly reports SYNCED after successful deploy.
2026-04-23 13:13:07 +03:00
dvirlabs
06827001e6 Ajust the pipeline to the new api
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
2026-04-23 12:50:46 +03:00
dvirlabs
6420a584c4 test
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
2026-04-23 12:33:08 +03:00
e8fed366b4 test
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
2026-04-23 00:35:03 +03:00
e500e21fab fix: resolve OUT_OF_SYNC and empty files array issues
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
Root causes:
1. Inconsistent Ansible callback (minimal) broke debug output parsing
2. DRIFTED_FILES extraction failed due to format changes
3. Files array stayed empty even when drift was detected

Fixes:
1. Use YAML callback for consistent, structured output
2. Improve DRIFTED_FILES parsing to handle YAML format
3. Remove conflicting ANSIBLE_CALLBACKS_ENABLED/minimal settings
4. Add GITOPS_STATUS_FIX.md with complete analysis

Result:
- Files array now populates correctly when drift exists
- Sync status accurately reflects actual server state
- Better debug logging for troubleshooting

See GITOPS_STATUS_FIX.md for full root cause analysis and testing guide.
2026-04-22 23:46:14 +03:00
654259c7cd test
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
2026-04-22 22:56:11 +03:00
dvirlabs
6fbadf73e3 Fix failed step
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
2026-04-22 21:57:15 +03:00
dvirlabs
fc8cb0c40e fix: Resolve 'too many open files' error in pipeline
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
- Remove -v verbose flag from ansible-playbook (was causing file descriptor exhaustion)
- Add recurse: false to find tasks (prevents recursive directory traversal)
- Set ulimit -n 4096 in Woodpecker container to increase FD limit
- Add ANSIBLE_* environment variables for container optimization:
  - ANSIBLE_HOST_KEY_CHECKING=False (skip SSH key verification)
  - ANSIBLE_CALLBACK_WHITELIST=minimal (reduce output verbosity)
  - ANSIBLE_FORCE_COLOR=False (no ANSI color codes)
  - ANSIBLE_RETRY_FILES_ENABLED=False (don't create retry files)

This resolves fsnotify watcher errors in container environments with low FD limits.
2026-04-22 21:54:00 +03:00
082ed0a0a4 Migrate to infinity datasource
Some checks failed
ci/woodpecker/cron/woodpecker Pipeline failed
ci/woodpecker/push/woodpecker Pipeline failed
2026-04-21 04:54:47 +03:00
fb08df741b test new branch
All checks were successful
ci/woodpecker/pr/woodpecker Pipeline was successful
2026-04-19 06:03:23 +03:00
72e6f6aab7 Update cron step
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/cron/woodpecker Pipeline was successful
2026-04-19 05:14:41 +03:00
4fe239d4c4 Fixcron
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
ci/woodpecker/cron/woodpecker Pipeline failed
2026-04-19 05:00:36 +03:00
f81e408e11 Add pushgateway svc
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
2026-04-19 04:38:55 +03:00
e2937a8744 Add cron 2026-04-19 01:43:49 +03:00
2f580459d4 test
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
2026-04-17 18:16:46 +03:00
ec3f1fa798 test
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
2026-04-17 17:17:14 +03:00
c207eb99ac test
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
2026-04-17 17:11:21 +03:00
d1c38826f3 test
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
2026-04-17 17:02:10 +03:00
d9e4519107 test
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
2026-04-17 17:00:25 +03:00
227fb86b04 test
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
2026-04-17 16:57:22 +03:00
dvirlabs
19c99da550 Fix woodpecker pipeline
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
2026-04-16 19:39:38 +03:00
dvirlabs
92cf69cee1 Add woodpecker pipeline 2026-04-16 19:37:50 +03:00