Skip to content

Chores/add ci failure bot#390

Closed
stktyagi wants to merge 8 commits intoopenwisp:masterfrom
stktyagi:chores/add-ci-failure-bot
Closed

Chores/add ci failure bot#390
stktyagi wants to merge 8 commits intoopenwisp:masterfrom
stktyagi:chores/add-ci-failure-bot

Conversation

@stktyagi
Copy link
Copy Markdown
Member

Checklist

  • I have read the OpenWISP Contributing Guidelines.
  • I have manually tested the changes proposed in this pull request.
  • I have written new test cases for new code and/or updated existing tests for changes to existing code.
  • I have updated the documentation.

Description of Changes

Added CI failure bot caller workflow

stktyagi and others added 8 commits June 10, 2025 19:24


An attempt to merge config with wrong format will now raise a validation error instead of failing.

Fixes openwisp#351
It only prevents the original AttributeError crash and correctly lets the .validate() method handle all validation of the final merged configuration.

Fixes openwisp#351
Merge_config now raises ValidationError when templates have incompatible types for the same key (e.g. list vs dict), instead of silently overwriting.
Test updated to assert ValidationError.

Fixes openwisp#351
Narrowed the incompatible type check in merge_config to only
raise ValidationError when a dict or list conflicts with a
different type. Scalar overrides (e.g. str to int) are still
allowed as before.

Fixes openwisp#351
Added ci failure bot caller workflow for netjsonconfig.
@stktyagi stktyagi closed this Mar 14, 2026
@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Mar 14, 2026

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro

Run ID: 75b4f5de-aa64-4373-86c0-24db95b59cb2

📥 Commits

Reviewing files that changed from the base of the PR and between 39b85dc and d6bc52f.

📒 Files selected for processing (3)
  • .github/workflows/bot-ci-failure.yml
  • netjsonconfig/utils.py
  • tests/openwrt/test_default.py

📝 Walkthrough

Walkthrough

The pull request adds three complementary changes: a new GitHub Actions workflow that automatically detects PR context when the Netjsonconfig CI Build workflow fails (using a multi-step fallback strategy), an enhancement to the merge_config function to validate type compatibility during configuration merges and raise ValidationError for mismatched types, and a new test case validating this type-checking behavior for DHCP configurations.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~25 minutes

Suggested reviewers

  • nemesifier
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
📝 Coding Plan
  • Generate coding plan for human review comments

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@stktyagi stktyagi deleted the chores/add-ci-failure-bot branch March 14, 2026 12:12
@coveralls
Copy link
Copy Markdown

Coverage Status

coverage: 99.182% (+0.002%) from 99.18%
when pulling d6bc52f on stktyagi:chores/add-ci-failure-bot
into 39b85dc on openwisp:master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants