Skip to content

fix: use a placeholder project ID in each Slack CLI config - #24

Merged
zimeg merged 1 commit into
mainfrom
fix-placeholder-project-id
Dec 3, 2026
Merged

zimeg merged 1 commit into
mainfrom
fix-placeholder-project-id

Conversation

@zimeg

@zimeg zimeg commented Dec 3, 2026

Copy link
Copy Markdown
Member

Summary

This pull request fixes pytest in projects created with slack create by committing a placeholder project ID and removing the test that pinned .slack/config.json.

  • tests/test_slack_config.py checked that the committed config was exactly {"manifest": {"source": "local"}}, but slack create writes a project_id into every new project, so the test failed before a developer changed anything.
  • Each .slack/config.json now holds the placeholder project_id that bolt-python-examples uses, and slack create replaces it with a fresh ID.
  • The test is removed on purpose. A real project should commit its own project ID, so no test pins this file. Each subproject runs one test fewer than main.

Fixes #21

Testing

  • Run slack create my-agent -t slack-samples/bolt-python-personal-agent --subdir pydantic-ai -b fix-placeholder-project-id and confirm .slack/config.json has a new project_id instead of the zeros.
  • In a fresh virtual environment, run pip install -e ".[dev]" and pytest, and confirm the tests pass.
  • Repeat with --subdir claude-agent-sdk or openai-agents-sdk.

🤖 Generated with Claude Code

Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>
@zimeg
zimeg requested a review from a team as a code owner December 3, 2026 21:33
@zimeg zimeg added the bug M-T: confirmed bug report. Issues are confirmed when the reproduction steps are documented label Dec 3, 2026
@zimeg zimeg self-assigned this Dec 3, 2026

@cchensh cchensh left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Approving. All three subprojects' .slack/config.json now carry the same zero project_id as bolt-python-examples, which slack create replaces, and the three test_slack_config.py files that pinned the old config are gone. No other .slack/config.json is in the tree. CI is green on all three subprojects.

Nit: these files now end with a newline, while bolt-python-starter-agent#328 keeps them without one, so the two repos' configs differ by a byte.

@zimeg
zimeg merged commit a61d4b2 into main Dec 3, 2026
8 checks passed
@zimeg
zimeg deleted the fix-placeholder-project-id branch December 3, 2026 21:42
@zimeg

zimeg commented Dec 3, 2026

Copy link
Copy Markdown
Member Author

🧹 @cchensh The newline difference went the other way: slack-samples/bolt-python-starter-agent#328 now ends its configs with a newline too (9a0c27c), so both repos match the bolt-python-examples placeholder byte for byte.

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

Labels

bug M-T: confirmed bug report. Issues are confirmed when the reproduction steps are documented

Projects

None yet

Development

Successfully merging this pull request may close these issues.

tests: test_slack_config fails in projects created with slack create

2 participants