openSUSE / open-build-service

Build and distribute Linux packages from sources in an automatic, consistent and reproducible way #obs
https://openbuildservice.org
GNU General Public License v2.0
921 stars 437 forks source link

File changed date not changed if was cached #11391

Open kvelichko-omp opened 3 years ago

kvelichko-omp commented 3 years ago

Issue Description

When create or update file in package (http://127.0.0.1:3000/package/show/PRJNAME/PKGNAME) field "Changed" is not update with page refresh after some minutes.

Because table line with file description is cached and not expired..

Expected Result

After page refresh field "Changed" show "1 minutes" "10 minutes" etc

How to Reproduce

  1. Execute developer environment:

    rake docker:build
    docker-compose up
  2. Create project, configure interconnect, add test package

  3. Upload file sope.spec:

    Name:           cached_changed
    License:        GPLv2+
    Group:          Development/Tools/Building
    AutoReqProv:    on
    Summary:        Test Package
    Version:        1.0
    Release:        1
    Requires:       bash
    Conflicts:      something
    Provides:       myself
    
    %description
    
    %prep
    
    %build
    
    %install
    mkdir -p $RPM_BUILD_ROOT
    echo "cached_changed" > $RPM_BUILD_ROOT/my_packaged_file
    
    %files
    %defattr(-,root,root)
    /my_packaged_file
    
    %changelog
  4. See file list: Screenshot from 2021-07-16 13-25-01

  5. Refresh page after 1-5-30-60 minutes your see same value 'changed' less than a minute

Further Information

krauselukas commented 3 years ago

@kvelichko-omp thanks for reporting this, I can reproduce it in my development environment. It doesn't seem to affect production.

kvelichko-omp commented 3 years ago

Yea

I'm also can't reproduce this on build.opensuse.org.

But on my OBS 2.10 with memcached this is reproducible.

I do not know why. May be in build.opensuse.org do not used memcached