GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Remove `augmentationProperties` from `Config` type by mbg · Pull Request #3075 · github/codeql-action

Conversation

@mbg

@mbg mbg commented Sep 2, 2025 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

This PR updates sendCompletedStatusReport to use the computed packs from computedConfig rather than computing the packs from the input UserConfig and AugmentationProperties locally.

As a result, AugmentationProperties is no longer needed in Config and is removed.

Risk assessment

For internal use only. Please select the risk level of this change:

  • Low risk: Changes are fully under feature flags, or have been fully tested and validated in pre-production environments and are highly observable, or are documentation or test only.

Merge / deployment checklist

  • Confirm this change is backwards compatible with existing workflows.
  • Consider adding a changelog entry for this change.
  • Confirm the readme and docs have been updated if necessary.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@mbg
mbg requested a review from henrymercer September 2, 2025 17:24
@mbg
mbg force-pushed the mbg/refactor/augmentation-properties branch from fe428a8 to e9fb72d Compare September 3, 2025 11:14
@mbg mbg mentioned this pull request Sep 3, 2025
Overlay databases: Use Config instead of AugmentationProperties #3072
Merged
mbg added 2 commits September 3, 2025 12:56
@mbg
Use computedConfig for pack telemetry
d332aa9
@mbg
Remove augmentationProperties from Config
87c5b58
@mbg
mbg force-pushed the mbg/remove-augmentation-properties branch from 1ef359a to 87c5b58 Compare September 3, 2025 11:57
Base automatically changed from mbg/refactor/augmentation-properties to main September 3, 2025 15:40
@mbg
mbg marked this pull request as ready for review September 3, 2025 15:41
@mbg
mbg requested a review from a team as a code owner September 3, 2025 15:41
Copilot AI review requested due to automatic review settings September 3, 2025 15:41
Copilot AI reviewed Sep 3, 2025
View reviewed changes

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Pull Request Overview

This PR removes the augmentationProperties field from the Config type by updating sendCompletedStatusReport to use computed packs from computedConfig instead of calculating them from UserConfig and AugmentationProperties. The change simplifies the configuration interface while maintaining the same functionality.

Key changes:

  • Removed augmentationProperties from the Config type definition
  • Updated getDefaultConfig return type to temporarily include augmentationProperties for internal use
  • Simplified pack calculation logic in sendCompletedStatusReport to use computedConfig.packs directly

Reviewed Changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/config-utils.ts Removes augmentationProperties from Config type and updates getDefaultConfig return type
src/init-action.ts Simplifies pack calculation logic to use config.computedConfig.packs directly
src/testing-utils.ts Removes augmentationProperties import and removes the field from test config creation
src/config-utils.test.ts Updates test to destructure augmentationProperties from getDefaultConfig result
src/codeql.test.ts Updates test to pass augmentationProperties directly to generateCodeScanningConfig
lib/init-action.js Generated JavaScript file (not reviewed per guidelines)

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
henrymercer
henrymercer previously approved these changes Sep 3, 2025
View reviewed changes

@henrymercer henrymercer left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Before merging, could you run some of the PR checks that include packs in debug mode and check that the packs property is populated correctly?

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread src/config-utils.ts Outdated
}

const config = await getDefaultConfig(inputs);
const { augmentationProperties, ...config } = await getDefaultConfig(inputs);

@henrymercer henrymercer Sep 3, 2025

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Given that we only use getDefaultConfig in this function, consider having getDefaultConfig populate computedConfig directly to simplify the flow.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@mbg mbg Sep 4, 2025

Copy link
Copy Markdown
Member Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

I have made the UserConfig (from the inputs) an argument to getDefaultConfig (now initActionState), set it there, and generate computedConfig there. That avoids having to return augmentationProperties as well.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
mbg added 6 commits September 4, 2025 09:55
@mbg
Set user-provided UserConfig in getDefaultConfig
0fb047d
@mbg
Populate computedConfig in getDefaultConfig
8d623f4
@mbg
Rename getDefaultConfig and update doc comment
f2e20f5
@mbg
Move InitStatusReport types to status-report.ts
da92996
@mbg
Add createInitWithConfigStatusReport function
37ddb03
@mbg
Add unit tests for createInitWithConfigStatusReport
920bba1
@mbg
mbg dismissed henrymercer’s stale review via 920bba1 September 4, 2025 09:59
@mbg

mbg commented Sep 4, 2025

Copy link
Copy Markdown
Member Author

@henrymercer I refactored creating the InitWithConfigStatusReport into a function and added some unit tests for that. That should be more robust than checking the debug logs, but let me know if you still want me to do that as well?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@mbg
mbg requested a review from henrymercer September 4, 2025 10:01
henrymercer
henrymercer approved these changes Sep 4, 2025
View reviewed changes

@henrymercer henrymercer left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Great, even better!

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@mbg
mbg merged commit dfb741d into main Sep 4, 2025
@mbg
mbg deleted the mbg/remove-augmentation-properties branch September 4, 2025 10:31
@github-actions github-actions Bot mentioned this pull request Sep 5, 2025
Merge main into releases/v3 #3081
Merged
8 tasks done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

Copilot code review Copilot
Copilot review effort
Applies to this pull request for everyone.Learn more about Copilot code review.
Copilot left review comments
@henrymercer henrymercer henrymercer approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@mbg @henrymercer
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.