You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for contributing to the Docker-Selenium project! A PR well described will help maintainers to quickly review and merge it
Before submitting your PR, please check our contributing guidelines, applied for this repository.
Avoid large PRs, help reviewers by making them as simple and short as possible.
Description
Motivation and Context
Types of changes
Bug fix (non-breaking change which fixes an issue)
New feature (non-breaking change which adds functionality)
Breaking change (fix or feature that would cause existing functionality to change)
The action failed during make lint_format_scripts because the Makefile target install_python_venv (Makefile:92) ran source .venv/bin/activate under /bin/sh, and /bin/sh does not support the source builtin. - Log evidence: /bin/sh: 2: source: not found - This caused make to exit with Error 127, and the job failed with exit code 2.
Relevant error logs:
1: ##[group]Runner Image Provisioner2: Hosted Compute Agent
...
46: ssh-strict: true47: ssh-user: git48: persist-credentials: true49: clean: true50: sparse-checkout-cone-mode: true51: fetch-depth: 152: fetch-tags: false53: show-progress: true54: lfs: false55: submodules: false56: set-safe-directory: true57: env:58: GH_CLI_TOKEN: ***59: GH_CLI_TOKEN_PR: ***60: RUN_ID: 2054325843461: RERUN_FAILED_ONLY: true62: RUN_ATTEMPT: 1
...
128: git switch -c <new-branch-name>129: Or undo this operation with:130: git switch -131: Turn off this advice by setting config variable advice.detachedHead to false132: HEAD is now at d44dead Merge a34bf13a615dec958b3909c9e8d44ff897c47b87 into 3b8e797d9d2e1840de730e87ab07d9014742a1e1133: ##[endgroup]134: [command]/usr/bin/git log -1 --format=%H135: d44dead363db79a875bc04ff165fbd52805bc396136: ##[group]Run make lint_format_scripts137: �[36;1mmake lint_format_scripts�[0m138: shell: /usr/bin/bash -e {0}139: env:140: GH_CLI_TOKEN: ***141: GH_CLI_TOKEN_PR: ***142: RUN_ID: 20543258434143: RERUN_FAILED_ONLY: true144: RUN_ATTEMPT: 1145: ##[endgroup]146: python3 -m venv .venv ; \147: source .venv/bin/activate148: /bin/sh: 2: source: not found149: make: *** [Makefile:92: install_python_venv] Error 127150: ##[error]Process completed with exit code 2.151: Post job cleanup.
Generic: Robust Error Handling and Edge Case Management
Objective: Ensure comprehensive error handling that provides meaningful context and graceful degradation
Status: Venv not applied: The new install_python_venv target activates the venv in its own shell, but install_python_deps runs in a separate shell so dependencies may still install into the system environment instead of the created venv.
Fix the virtual environment usage by removing the ineffective source command and calling the venv's Python executable directly in install_python_deps. This allows for the safe removal of the --break-system-packages flag.
Why: This suggestion correctly identifies a fundamental flaw where source is ineffective in a Makefile recipe, causing dependencies to be installed globally. The proposed fix is comprehensive, using the venv's Python executable and removing the now-unnecessary --break-system-packages flag, which significantly improves the correctness and safety of the script.
High
General
Add PHONY declarations
Declare the install_python_venv and install_python_deps targets as .PHONY to ensure make always executes their recipes regardless of whether files with those names exist.
Why: This suggestion correctly recommends declaring Makefile targets as .PHONY to prevent conflicts with files of the same name. This is a standard best practice that improves the robustness and predictability of the Makefile.
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
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.
User description
Thanks for contributing to the Docker-Selenium project!
A PR well described will help maintainers to quickly review and merge it
Before submitting your PR, please check our contributing guidelines, applied for this repository.
Avoid large PRs, help reviewers by making them as simple and short as possible.
Description
Motivation and Context
Types of changes
Checklist
PR Type
Enhancement
Description
Fix Makefile indentation inconsistency using tabs
Add Python virtual environment setup target
Make install_python_deps depend on venv creation
Diagram Walkthrough
File Walkthrough
Makefile
Fix indentation and add venv setup targetMakefile
setup_dev_envtarget from spaces to tabs forconsistency
install_python_venvtarget to create Python virtualenvironment
install_python_depsdepend oninstall_python_venvfor properinitialization order
dependencies