-
Notifications
You must be signed in to change notification settings - Fork 5
fix: logs command multi-topic search and SLS field query syntax #151
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
86d1ec7
fix: logs command multi-topic search and SLS field query syntax
rsonghuster a698c00
fix: remove unused topic destructuring variable in logs command methods
rsonghuster f634129
fix: upgrade setup-java to v4 with zulu distribution to fix JAVA_HOME…
rsonghuster File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,79 @@ | ||
| # Claude Code Configuration | ||
|
|
||
| This file contains configuration information for Claude Code, an AI programming assistant. | ||
|
|
||
| ## Project Overview | ||
|
|
||
| FC3 is the Serverless Devs component for Alibaba Cloud Function Compute 3.0, providing full lifecycle management for serverless functions. Written in TypeScript with modular architecture supporting create, develop, debug, deploy, and operate workflows. | ||
|
|
||
| **Tech Stack**: TypeScript 4.4, Jest, Vercel ncc, f2elint, Prettier | ||
|
|
||
| ## Available Scripts | ||
|
|
||
| | Script | Description | | ||
| | ------------------------- | -------------------------- | | ||
| | `npm run build` | Production bundle with ncc | | ||
| | `npm run watch` | TypeScript watch mode | | ||
| | `npm test` | Jest tests with coverage | | ||
| | `npm run format` | Prettier formatting | | ||
| | `npm run lint` | f2elint scanning | | ||
| | `npm run fix` | Auto-fix lint issues | | ||
| | `npm run publish` | Build and registry publish | | ||
| | `npm run generate-schema` | Generate JSON schema | | ||
|
|
||
| ## Key Directories | ||
|
|
||
| | Directory | Purpose | | ||
| | ------------------ | -------------------------------------------- | | ||
| | `src/` | Source code | | ||
| | `src/subCommands/` | CLI subcommands (deploy, build, local, etc.) | | ||
| | `src/resources/` | Cloud resources (FC, RAM, SLS, OSS, ACR) | | ||
| | `src/interface/` | TypeScript interfaces | | ||
| | `src/utils/` | Utility functions | | ||
| | `__tests__/ut/` | Unit tests | | ||
| | `__tests__/it/` | Integration tests | | ||
| | `docs/` | Documentation | | ||
|
|
||
| ## Testing | ||
|
|
||
| **Current Status**: 986 tests total, 986 passing, 2 skipped (integration tests require cloud credentials) | ||
|
|
||
| **Run tests**: `npm test` | ||
| **Coverage**: Run with `--coverage` flag | ||
|
|
||
| ## Architecture | ||
|
|
||
| Modular architecture with: | ||
|
|
||
| 1. Main entry (`index.ts`) routing to subcommands | ||
| 2. Base class (`base.ts`) with common preprocessing | ||
| 3. Subcommand modules for operations | ||
| 4. Resource modules for cloud service integration | ||
|
|
||
| See `docs/architecture.md` for detailed diagrams. | ||
|
|
||
| ## Recent Features | ||
|
|
||
| - HTTP URL support for code/layer sources (v0.1.17) | ||
| - Layer publish HTTP bug fix (PR #147) | ||
| - FileManager remove operation upgrade support | ||
| - ProvisionConfig/ScalingConfig array handling | ||
| - LLM metrics in logConfig | ||
| - Logs command: multi-topic search (FCLogs + FCInstanceEvents) for --instance-id, SLS field-specific query syntax | ||
|
|
||
| ## Development Workflow | ||
|
|
||
| 1. Create branch from `master` | ||
| 2. Run `npm run lint` and `npm run format` | ||
| 3. Write/update tests | ||
| 4. Build: `npm run build` | ||
| 5. Test: `npm test` | ||
| 6. Submit PR | ||
|
|
||
| ## Documentation Index | ||
|
|
||
| | File | Purpose | | ||
| | ---------------------- | -------------------- | | ||
| | `docs/CONTRIB.md` | Development guide | | ||
| | `docs/RUNBOOK.md` | Operations runbook | | ||
| | `docs/architecture.md` | Architecture details | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
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.
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.
Upgrade
docker/setup-buildx-action@v2to@v4— actionlint reports it as too old.Actionlint flags this action version as incompatible with the current GitHub Actions runner. The latest version is
docker/setup-buildx-action@v4, and this should be applied at both Line 16 (docker-ci-standard) and Line 73 (docker-ci-custom). This PR already upgraded the other action versions —docker/setup-buildx-actionshould follow suit.🔧 Proposed fix (apply to both Line 16 and Line 73)
📝 Committable suggestion
🧰 Tools
🪛 actionlint (1.7.12)
[error] 16-16: the runner of "docker/setup-buildx-action@v2" action is too old to run on GitHub Actions. update the action's version to fix this issue
(action)
🤖 Prompt for AI Agents
🧩 Analysis chain
🌐 Web query:
What is the latest stable version of docker/setup-buildx-action GitHub Action?💡 Result:
The latest stable version of the GitHub Action docker/setup-buildx-action is v4.0.0 (published 2026-03-05). [1][2] This is reflected by the repository’s “Latest release” being v4.0.0 and the dedicated release tag for v4.0.0. [1][2] Practical usage (stable pin): uses: docker/setup-buildx-action@v4.0.0 (or
@v4to track the v4 major). [1][2]Citations:
🏁 Script executed:
Repository: devsapp/fc3
Length of output: 403
docker/setup-buildx-action@v2is outdated and should be upgraded tov4.Actionlint flags this action version as incompatible with the current GitHub Actions runner. The latest stable version is v4.0.0. Update both occurrences at line 16 and line 73 in the docker-ci workflow jobs.
🔧 Proposed fix
Apply the same change at line 73.
📝 Committable suggestion
🧰 Tools
🪛 actionlint (1.7.12)
[error] 16-16: the runner of "docker/setup-buildx-action@v2" action is too old to run on GitHub Actions. update the action's version to fix this issue
(action)
🤖 Prompt for AI Agents