Skip to content

[WIP] Perform deep clean of the workspace#134

Merged
LVT-ENG merged 1 commit intomainfrom
copilot/hulk-clean-pristine-environment
Apr 8, 2026
Merged

[WIP] Perform deep clean of the workspace#134
LVT-ENG merged 1 commit intomainfrom
copilot/hulk-clean-pristine-environment

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 8, 2026

Thanks for asking me to work on this. I will get started on it and keep this PR's description up to date as I form a plan and make progress.

Slash Command: /hulk-clean

  • Action: Perform a deep clean of the workspace.
  • Steps:
    1. Run git reset --hard HEAD to discard local changes.
    2. Run git clean -fd to remove untracked files and directories.
    3. Remove all __pycache__, .pyc, and .log files.
  • Goal: Ensure a 100% pristine environment for the next deployment.

@vercel
Copy link
Copy Markdown

vercel bot commented Apr 8, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
tryonyou-app Ready Ready Preview, Comment Apr 8, 2026 3:40pm
tryonyou-pilot Error Error Apr 8, 2026 3:40pm

Request Review

@LVT-ENG
Copy link
Copy Markdown
Member

LVT-ENG commented Apr 8, 2026

import subprocess
import os
import shutil

def hulk_smash_clean():
"""
Protocolo de limpieza absoluta para entornos de ejecución de agentes.
"""
commands = [
["git", "reset", "--hard", "HEAD"], # Revierte cambios
["git", "clean", "-fd"], # Borra archivos no rastreados
]

print("🧹 Hulk iniciando limpieza de Git...")
for cmd in commands:
    try:
        subprocess.run(cmd, check=True, capture_output=True)
    except subprocess.CalledProcessError as e:
        print(f"Error en comando {cmd}: {e.stderr.decode()}")

# Limpieza de residuos de ejecución
print("🧹 Eliminando basura del sistema (__pycache__, logs)...")
for root, dirs, files in os.walk('.'):
    # Borrar carpetas de caché
    for d in dirs:
        if d in ['__pycache__', '.pytest_cache', '.ipynb_checkpoints']:
            shutil.rmtree(os.path.join(root, d), ignore_errors=True)
    # Borrar archivos temporales
    for f in files:
        if f.endswith(('.pyc', '.log', '.tmp', '.bak')):
            try:
                os.remove(os.path.join(root, f))
            except OSError:
                pass

print("✨ Entorno 100% limpio. Listo para el siguiente movimiento.")

if name == "main":
hulk_smash_clean()

@LVT-ENG LVT-ENG marked this pull request as ready for review April 8, 2026 15:40
@LVT-ENG LVT-ENG merged commit 2c64cdd into main Apr 8, 2026
2 of 4 checks passed
Copilot stopped work on behalf of LVT-ENG due to an error April 8, 2026 15:41
Copilot AI requested a review from LVT-ENG April 8, 2026 15:41
@LVT-ENG
Copy link
Copy Markdown
Member

LVT-ENG commented Apr 8, 2026

Yes

@cursor cursor bot deleted the copilot/hulk-clean-pristine-environment branch April 9, 2026 08:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants