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 — Add Ruby and Swift language autodetect test by angelapwen · Pull Request #1369 · github/codeql-action

Conversation

@angelapwen

@angelapwen angelapwen commented Nov 15, 2022 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Contributor

This PR check adds Swift and Ruby to the existing multi-language autodetect check. Once Swift is in GA, we will be able to remove the CODEQL_ENABLE_EXPERIMENTAL_FEATURES_SWIFT: "true" set in that check.

Merge / deployment checklist

  • Confirm this change is backwards compatible with existing workflows.
  • Confirm the readme has been updated if necessary.
  • Confirm the changelog has been updated if necessary.

Sorry, something went wrong.

Uh oh!

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

All reactions
angelapwen added 2 commits November 15, 2022 11:43
@angelapwen
Add Swift language autodetect test
80d68ec
@angelapwen
Merge branch 'main' into swift-autodetect
f70f3fd
@angelapwen
angelapwen marked this pull request as ready for review November 15, 2022 21:18
@angelapwen
angelapwen requested a review from a team as a code owner November 15, 2022 21:18
@angelapwen
Merge branch 'main' into swift-autodetect
23c7750
@henrymercer

henrymercer commented Nov 15, 2022

Copy link
Copy Markdown
Contributor

🤔 Hmm, I think Swift can only be auto-detected in the CLI as of nightly-latest at the moment. I think possibly there's still some part of the Action that's doing language autodetection, even when we're parsing the config in the CLI, but I haven't dug into it.

All reactions

Sorry, something went wrong.

Uh oh!

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

@angelapwen

angelapwen commented Nov 15, 2022 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Contributor Author

🤔 Hmm, I think Swift can only be auto-detected in the CLI as of nightly-latest at the moment. I think possibly there's still some part of the Action that's doing language autodetection, even when we're parsing the config in the CLI, but I haven't dug into it.

I thought so too, but was surprised that it passed in a previous run (before I marked ready for review and merged main in): https://github.com/github/codeql-action/actions/runs/3474223934/jobs/5807144328

I can make this repo draft until 2.11.4 is released (so it would be caught under latest and cached) if you think that's safer?

All reactions

Sorry, something went wrong.

Uh oh!

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

angelapwen added 2 commits November 16, 2022 13:49
@angelapwen
Merge branch 'main' into swift-autodetect
b415ca9
@angelapwen
Update generated check
dfe79c8
henrymercer
henrymercer reviewed Nov 17, 2022
View reviewed changes
Comment thread pr-checks/checks/swift-autodetect.yml Resolved

Uh oh!

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

Comment thread pr-checks/checks/swift-autodetect.yml Resolved

Uh oh!

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

Comment thread pr-checks/checks/swift-autodetect.yml Outdated
Comment on lines +1 to +2
# This check should be combined into `multi-language-autodetect.yml` once Swift is GA'ed
# and the `CODEQL_ENABLE_EXPERIMENTAL_FEATURES_SWIFT` environment variable is not needed.

@henrymercer henrymercer Nov 17, 2022 •
edited
Loading

Uh oh!

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

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.

I think it would be fine to set CODEQL_ENABLE_EXPERIMENTAL_FEATURES_SWIFT=true in multi-language-autodetect.yml to help cut down on the number of jobs. We could add some checks on the tools version to make sure that language autodetection does the right thing for old CLIs too.

Sorry, something went wrong.

Uh oh!

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

All reactions
angelapwen and others added 4 commits November 17, 2022 14:23
@angelapwen @henrymercer
Remove TEST_MODE environment variable
11436f9
Co-authored-by: Henry Mercer <[email protected]>
@angelapwen
Update autogenerated checks
7e70811
@angelapwen
Update multi language autodetect check
87cd70c
@angelapwen
Remove Swift-specific autodetect check
541382a
angelapwen
angelapwen commented Nov 17, 2022
View reviewed changes
Comment thread .github/workflows/__multi-language-autodetect.yml
Comment on lines +113 to +114
if: (matrix.version == 'cached' || matrix.version == 'latest' || matrix.version
== 'nightly-latest')

@angelapwen angelapwen Nov 17, 2022

Copy link
Copy Markdown
Contributor 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'm not sure if this is what you'd meant by using the tools version, but I saw there was precedent for using the matrix.version in the ml-powered-queries PR check.

Currently, just checking Ruby and Swift in the most recent 3 CLIs and the other languages in the hardcoded 3 prior CLIs. This can be made more robust when we work out our testing plan for all supported releases.

Sorry, something went wrong.

Uh oh!

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

All reactions
@angelapwen
angelapwen enabled auto-merge (squash) November 18, 2022 00:23
@angelapwen angelapwen changed the title Add Swift language autodetect test Add Ruby and Swift language autodetect test Nov 18, 2022
@angelapwen
Remove Ruby autodetect check
c48901b
@angelapwen
angelapwen disabled auto-merge November 18, 2022 00:25
@angelapwen
angelapwen enabled auto-merge (squash) November 18, 2022 00:25
henrymercer
henrymercer previously approved these changes Nov 18, 2022
View reviewed changes
henrymercer
henrymercer reviewed Nov 18, 2022
View reviewed changes
Comment thread pr-checks/checks/multi-language-autodetect.yml Resolved

Uh oh!

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

@angelapwen
Remove if condition for non-Ruby/Swift languages
93b9fee
@angelapwen
angelapwen dismissed henrymercer’s stale review via 93b9fee November 18, 2022 17:00
henrymercer
henrymercer approved these changes Nov 18, 2022
View reviewed changes
@angelapwen

angelapwen commented Nov 18, 2022 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Contributor Author

Ah, I am having some errors come up in nightly-latest runs due to a bug in the CLI that has been fixed:

  ERROR: Referenced pack 'codeql/regex' not found. (/opt/hostedtoolcache/CodeQL/0.0.0-20221118/x64/codeql/qlpacks/codeql/python-all/0.6.4-dev/qlpack.yml:1,1-1)
  A fatal error occurred: Could not resolve library path for /home/runner/work/codeql-action/codeql-action/codeql-qlpacks/complex-python-qlpack

will have to re-run these checks when the version in nightly-latest is superseded by the version with the fix.

All reactions

Sorry, something went wrong.

Uh oh!

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

@angelapwen
angelapwen merged commit bab5a14 into github:main Nov 22, 2022
@angelapwen
angelapwen deleted the swift-autodetect branch November 22, 2022 17:49
This was referenced Nov 25, 2022
Merge main into releases/v2 #1395
Merged
Merge releases/v2 into releases/v1 #1397
Merged
@hongbo-miao hongbo-miao mentioned this pull request Nov 29, 2022
docs(readme): add swift support #1401
Closed
3 tasks done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@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.

2 participants

@angelapwen @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.