Skip to content

Update devcontainer-smoketest.yaml to use kconfig template#3291

Merged
josesimoes merged 3 commits intomainfrom
smoke-test-improvements
Apr 7, 2026
Merged

Update devcontainer-smoketest.yaml to use kconfig template#3291
josesimoes merged 3 commits intomainfrom
smoke-test-improvements

Conversation

@networkfusion
Copy link
Copy Markdown
Member

@networkfusion networkfusion commented Apr 7, 2026

Description

Take into account need for changes to the smoketest yaml to ensure kconfig template is consumed, mainly for TI targets ( as rest are kept as default).

Motivation and Context

Ensure kconfig is utilised properly in smoketests.

How Has This Been Tested?

Smoketests build completed.

Screenshots

Types of changes

  • Improvement (non-breaking change that improves a feature, code or algorithm)
  • Bug fix (non-breaking change which fixes an issue with code or algorithm)
  • New feature (non-breaking change which adds functionality to code)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Config and build (change in the configuration and build system, has no impact on code or features)
  • Dev Containers (changes related with Dev Containers, has no impact on code or features)
  • Dependencies/declarations (update dependencies or assembly declarations and changes associated, has no impact on code or features)
  • Documentation (changes or updates in the documentation, has no impact on code or features)

Checklist

  • My code follows the code style of this project (only if there are changes in source code).
  • My changes require an update to the documentation (there are changes that require the docs website to be updated).
  • I have updated the documentation accordingly (the changes require an update on the docs in this repo).
  • I have read the CONTRIBUTING document.
  • I have tested everything locally and all new and existing tests passed (only if there are changes in source code).

Summary by CodeRabbit

  • Chores
    • Updated CI devcontainer smoke-test workflow: added a new TI hardware target entry and improved environment setup.
    • Streamlined template handling and configuration substitution for TI targets so radio-frequency and user config values are applied more reliably during automated setup.

Take into account need for changes to the smoketest yaml.
In hindsight, some changes would not be required in the underlying devcontainer, however, the changes made are useful (as they ensure a user can build OTB).
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai bot commented Apr 7, 2026

Walkthrough

The devcontainer smoketest workflow adds a TI target entry, renames user-kconfig.conf.TEMPLATE to user-kconfig.conf, and moves radio-frequency substitution for TI targets from user-prefs.json to user-kconfig.conf by replacing the commented # CONFIG_RADIO_FREQUENCY=915 line with CONFIG_RADIO_FREQUENCY=${{ matrix.radio-freq }}.

Changes

Cohort / File(s) Summary
GitHub Actions Workflow
​.github/workflows/devcontainer-smoketest.yaml
Added a TI_CC1352R1_LAUNCHXL matrix entry; renamed user-kconfig.conf.TEMPLATEuser-kconfig.conf; changed TI radio-frequency substitution to edit user-kconfig.conf (replace # CONFIG_RADIO_FREQUENCY=915 with CONFIG_RADIO_FREQUENCY=${{ matrix.radio-freq }}) instead of user-prefs.json.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed The title accurately summarizes the primary change in the PR: updating devcontainer-smoketest.yaml to use kconfig template, which aligns with the modified workflow configuration.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch smoke-test-improvements

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.

Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In @.github/workflows/devcontainer-smoketest.yaml:
- Around line 62-64: The sed invocation that tries to inject the radio frequency
is malformed and doesn't match the actual template line "#
CONFIG_RADIO_FREQUENCY=915"; update the sed command used around the
matrix.radio-freq handling so it (1) matches the literal commented line (e.g.,
use a pattern like ^# CONFIG_RADIO_FREQUENCY=...), (2) replaces that entire line
with an uncommented CONFIG_RADIO_FREQUENCY=<value> using the matrix.radio-freq
variable, and (3) uses a correct sed substitution syntax/delimiter (no stray
quotes or colons) with in-place edit on user-kconfig.conf so the value is
reliably injected.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: 1525b7af-e88c-4ad3-98a1-5b5490e0a147

📥 Commits

Reviewing files that changed from the base of the PR and between 8bc239b and d15a65a.

📒 Files selected for processing (1)
  • .github/workflows/devcontainer-smoketest.yaml

@networkfusion networkfusion changed the title Update devcontainer-smoketest.yaml Update devcontainer-smoketest.yaml to use kconfig template Apr 7, 2026
Add test for TI radio
@networkfusion networkfusion requested a review from josesimoes April 7, 2026 22:07
Copy link
Copy Markdown
Member

@josesimoes josesimoes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@josesimoes josesimoes merged commit c304a55 into main Apr 7, 2026
22 checks passed
@josesimoes
Copy link
Copy Markdown
Member

@coderabbitai configuration

@josesimoes josesimoes deleted the smoke-test-improvements branch April 7, 2026 23:28
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai bot commented Apr 8, 2026

Configuration used: Repository: nanoframework/coderabbit/.coderabbit.yaml

CodeRabbit configuration
language: en-US
tone_instructions: ''
early_access: false
enable_free_tier: true
inheritance: false
reviews:
  profile: chill
  request_changes_workflow: true
  high_level_summary: true
  high_level_summary_instructions: ''
  high_level_summary_placeholder: '@coderabbitai summary'
  high_level_summary_in_walkthrough: false
  auto_title_placeholder: '@coderabbitai'
  auto_title_instructions: ''
  review_status: true
  review_details: false
  commit_status: true
  fail_commit_status: false
  collapse_walkthrough: true
  changed_files_summary: true
  sequence_diagrams: true
  estimate_code_review_effort: true
  assess_linked_issues: true
  related_issues: true
  related_prs: true
  suggested_labels: true
  labeling_instructions: []
  auto_apply_labels: false
  suggested_reviewers: true
  auto_assign_reviewers: false
  in_progress_fortune: false
  poem: false
  enable_prompt_for_ai_agents: true
  path_filters: []
  path_instructions: []
  abort_on_close: true
  disable_cache: false
  slop_detection:
    enabled: true
  auto_review:
    enabled: true
    description_keyword: ''
    auto_incremental_review: true
    auto_pause_after_reviewed_commits: 5
    ignore_title_keywords: []
    labels: []
    drafts: true
    base_branches: []
    ignore_usernames:
      - nfbot
  finishing_touches:
    docstrings:
      enabled: true
    unit_tests:
      enabled: true
    simplify:
      enabled: false
    custom: []
  pre_merge_checks:
    override_requested_reviewers_only: false
    docstrings:
      mode: warning
      threshold: 80
    title:
      mode: warning
      requirements: >-
        Title should be concise and descriptive with a general, short summary of
        the changes, ideally under 50 characters. No references to other PR or
        issues. Can't end with a full stop.
    description:
      mode: warning
    issue_assessment:
      mode: warning
    custom_checks: []
  tools:
    ast-grep:
      rule_dirs: []
      util_dirs: []
      essential_rules: true
      packages: []
    shellcheck:
      enabled: true
    ruff:
      enabled: true
    markdownlint:
      enabled: true
    github-checks:
      enabled: true
      timeout_ms: 90000
    languagetool:
      enabled: true
      enabled_rules: []
      disabled_rules: []
      enabled_categories: []
      disabled_categories: []
      enabled_only: false
      level: default
    biome:
      enabled: true
    hadolint:
      enabled: true
    swiftlint:
      enabled: true
    phpstan:
      enabled: true
      level: default
    phpmd:
      enabled: true
    phpcs:
      enabled: true
    golangci-lint:
      enabled: true
    yamllint:
      enabled: true
    gitleaks:
      enabled: true
    trufflehog:
      enabled: true
    checkov:
      enabled: true
    tflint:
      enabled: true
    detekt:
      enabled: true
    eslint:
      enabled: true
    flake8:
      enabled: true
    fortitudeLint:
      enabled: true
    rubocop:
      enabled: true
    buf:
      enabled: true
    regal:
      enabled: true
    actionlint:
      enabled: true
    pmd:
      enabled: true
    clang:
      enabled: true
    cppcheck:
      enabled: true
    opengrep:
      enabled: true
    semgrep:
      enabled: true
    circleci:
      enabled: true
    clippy:
      enabled: true
    sqlfluff:
      enabled: true
    trivy:
      enabled: true
    prismaLint:
      enabled: true
    pylint:
      enabled: true
    oxc:
      enabled: true
    shopifyThemeCheck:
      enabled: true
    luacheck:
      enabled: true
    brakeman:
      enabled: true
    dotenvLint:
      enabled: true
    htmlhint:
      enabled: true
    stylelint:
      enabled: true
    checkmake:
      enabled: true
    osvScanner:
      enabled: true
    blinter:
      enabled: true
    smartyLint:
      enabled: true
    emberTemplateLint:
      enabled: true
    psscriptanalyzer:
      enabled: true
chat:
  art: false
  allow_non_org_members: true
  auto_reply: true
  integrations:
    jira:
      usage: auto
    linear:
      usage: auto
knowledge_base:
  opt_out: false
  web_search:
    enabled: true
  code_guidelines:
    enabled: true
    filePatterns: []
  learnings:
    scope: auto
  issues:
    scope: auto
  jira:
    usage: auto
    project_keys: []
  linear:
    usage: auto
    team_keys: []
  pull_requests:
    scope: auto
  mcp:
    usage: auto
    disabled_servers: []
  linked_repositories: []
code_generation:
  docstrings:
    language: en-US
    path_instructions: []
  unit_tests:
    path_instructions: []
issue_enrichment:
  auto_enrich:
    enabled: false
  planning:
    enabled: true
    auto_planning:
      enabled: true
      labels: []
  labeling:
    labeling_instructions: []
    auto_apply_labels: false

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants