Add per-language validation workflow and branch ruleset recommendations#2
Conversation
- .github/workflows/validate.yml: per-language path-filtered CI jobs (structure, python, javascript, java, dotnet, go) with concurrency cancellation for PRs targeting main - readme.md: append Repository Ruleset Recommendations section with step-by-step GitHub Rulesets / Branch Protection setup guide Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Addresses CodeQL actions/missing-workflow-permissions alerts by declaring a top-level permissions block scoped to contents: read. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: seesharprun <5067401+seesharprun@users.noreply.github.com>
seesharprun
left a comment
There was a problem hiding this comment.
The comments on how to implement the ruleset should be in the agent logs, not the README file. The readme file should include a validation section with a basic and succinct breakdown of how validation works.
…adme Co-authored-by: seesharprun <5067401+seesharprun@users.noreply.github.com>
Done in commit |
seesharprun
left a comment
There was a problem hiding this comment.
The validation workflow is WAAY to complex. Can we simplify? Still use the name validation.yml or continuous-integration.yml
Here's some examples I use elsewhere:
- https://github.com/Azure-Samples/cosmos-db-nosql-dotnet-quickstart/blob/main/.github/workflows/azure-dev.yml
- https://github.com/Azure-Samples/cosmos-db-nosql-python-quickstart/blob/main/.github/workflows/azure-dev.yml
- https://github.com/Azure-Samples/cosmos-db-nosql-go-quickstart/blob/main/.github/workflows/azure-dev.yml
- https://github.com/Azure-Samples/cosmos-db-nosql-nodejs-quickstart/blob/main/.github/workflows/azure-dev.yml
Co-authored-by: seesharprun <5067401+seesharprun@users.noreply.github.com>
Done in commit
The file went from 394 lines down to 153. |
Co-authored-by: seesharprun <5067401+seesharprun@users.noreply.github.com>
permissions: contents: readto top-level (workflow-wide)concurrencyblock to cancel in-progress runs on new pushes to the same refOriginal prompt
Delegate to a seperate agent the task of creating the validation workflow. Ensure that the agent also gives me a recommendation on how to configure the repository's rulesets to ensure that it validates based on this workflow.
[Chronological Review: The conversation began with the user requesting a review of a user story and a Teams chat to develop a game plan for a draft iteration of a monorepo. The user then defined a numbering standard for samples in the repository, specifying categories and examples. The user requested to break the work into smaller pieces for delegation to a cloud agent. The user provided a list of sample repositories for context and emphasized the need for future planning in the README file. The conversation continued with the user refining the project plan, focusing on validation strategies, and simplifying the number of examples. The user ultimately requested to start the implementation by adding the project plan to the README file.][Intent Mapping:
[Technical Inventory:
/nosql/*subfolder, focus on language-based root subfolders, and limit examples to 2-3 per category.][Code Archaeology:
readme.md[Progress Assessment:
[Context Validation: All critical information for continuation is captured, including the need for a structured project plan and validation strategies.]
[Recent Commands Analysis:
1. Conversation Overview: - Primary Objectives: The user aimed to create a draft iteration of a monorepo, define a numbering standard for samples, structure a project plan for delegation to cloud agents, and implement this plan in the README file. - Session Context: The conversation flowed from initial planning to defining standards, discussing validation, and refining the project plan, culminating in a request to implement the plan in the README. - User Intent Evolution: The user's needs evolved from high-level planning to detailed implementation steps, emphasizing the importance of clarity and structure in the project documentation.- Technical Foundation:
- Azure Cosmos DB: A cloud database service used for building scalable applications.
- GitHub: A platform for version control and collaboration on code repositories.
- Cloud Agents: Automated agents intended to assist in implementing the project plan.
- Codebase Status:
- File Name:
- Purpose: To document the project plan and structure for the samples repository.
- Current State: The user requested to add the project plan to this file.
- Key Code Segments: Not applicable as the focus was on planning rather than code changes.
- Dependencies: The README will guide the implementation of the samples repository.
- Problem Resolution:
- Issues Encountered: The need for a clear validation strategy to ensure that changes in one language do not affect others.
- Solutions Implemented: Proposed a GitHub ruleset for validation to avoid merge conflicts.
- Debugging Context: Ongoing discussions about how to effectively manage sample validations across different languages.
- Lessons Learned: Importance of planning and structuring documentation for clarity and future reference.
- Progress Tracking:
- Completed Tasks: Defined a numbering standard, discussed validation strategies, and provided a list of existing samples.
- Partially Complete ...
readme.mdCreated from VS Code.
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.